public int Update(int id, CheckListUpdateApiModel updated) { var setting = _context.CheckList.First(x => x.Id == id); setting.Name = updated.Name; setting.Remark = updated.Remark; _context.CheckList.Update(setting); _context.SaveChanges(); return(setting.Id); }
public int Update(int id, CheckListUpdateApiModel updated) { return(_checkListRespository.Update(id, updated)); }
public int Update(int id, CheckListUpdateApiModel updated) { return(_CheckListContext.Update(id, updated)); }
public JsonResult Update(int id, CheckListUpdateApiModel updated) { var data = _CheckListService.Update(id, updated); return(Json(data)); }