public void Update(DetailsOfBill detailsOfBill) { var entry = db.Entry(detailsOfBill); //provides information, ability to perform actions on the entity entry.State = EntityState.Modified; db.SaveChanges(); }
public void Update(Area area) { var entry = db.Entry(area); //provides information, ability to perform actions on the entity entry.State = EntityState.Modified; db.SaveChanges(); }
//public IEnumerable<Invoice> GetAll() //{ // return from r in db.Invoices // orderby r.Id // select r; //} public void Update(User_Authorize user_authorize) { var entry = db.Entry(user_authorize); //provides information, ability to perform actions on the entity entry.State = EntityState.Modified; db.SaveChanges(); }