public async Task <ActionResult> UpdateUser(int id, User User) { if (id != User.ClientId) { return(null); } dc.Entry(User).State = EntityState.Modified; var res = await dc.SaveChangesAsync(); return(new ObjectResult(res)); }
public async Task <ActionResult> UpdateActivity(int id, Activity activity) { if (id != activity.ActivityId) { return(null); } dc.Entry(activity).State = EntityState.Modified; var res = await dc.SaveChangesAsync(); return(new ObjectResult(res)); }
public async Task <ActionResult> UpdateCategory(int id, Category Category) { if (id != Category.CategoryId) { return(null); } dc.Entry(Category).State = EntityState.Modified; var res = await dc.SaveChangesAsync(); return(new ObjectResult(res)); }
public async Task <ActionResult> UpdatePackage(int id, Package Package) { if (id != Package.PackageId) { return(null); } dc.Entry(Package).State = EntityState.Modified; var res = await dc.SaveChangesAsync(); return(new ObjectResult(res)); }
public async Task <ActionResult> UpdatePolicy(int id, Policy Policy) { if (id != Policy.PolicyId) { return(null); } dc.Entry(Policy).State = EntityState.Modified; var res = await dc.SaveChangesAsync(); return(new ObjectResult(res)); }
public async Task <ActionResult> UpdateBooking(int id, Booking Booking) { if (id != Booking.BookingId) { return(null); } dc.Entry(Booking).State = EntityState.Modified; var res = await dc.SaveChangesAsync(); return(new ObjectResult(res)); }
public async Task <ActionResult> UpdateClassification(int id, Classification Classification) { if (id != Classification.ClassificationId) { return(null); } dc.Entry(Classification).State = EntityState.Modified; var res = await dc.SaveChangesAsync(); return(new ObjectResult(res)); }
public async Task UpdateUser(User User) { dc.Entry(User).State = EntityState.Modified; await dc.SaveChangesAsync(); }