Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [httpGet]
- public httpresponsemessage EditCustomer(int id)
- {
- Customer cust = context.Customers.Find(id);
- cust.code = context.Shop.max(x=>x.id);
- context.Entry(cust).State = System.Data.EntityState.Modified;
- context.SaveChanges();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement