public async Task <IActionResult> PutTodo (int id, Wishlist item) { if (id != item.Id) { return BadRequest (); } _context.Entry (item).State = EntityState.Modified; await _context.SaveChangesAsync (); return Content ("Wishlistupdated"); }
public async Task <IActionResult> PutUsers(int id, Users item) { if (id != item.Id) { return(BadRequest()); } _context.Entry(item).State = EntityState.Modified; await _context.SaveChangesAsync(); return(Content("User has been updated")); }