C#C
C#12mo ago
84 replies
YourMajesty

Creates new object instead of updating it

Hello, guys, I have a very simple MVC WebApp and I faced a problem. So thing is for some reason my edit method creates new instance in database instead of updating given object. From what I can tell issue is within my html form, because if I add input field for Id there it works fine.
Was this page helpful?