Beispiel #1
0
        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);
        }
Beispiel #2
0
 public int Update(int id, CheckListUpdateApiModel updated)
 {
     return(_checkListRespository.Update(id, updated));
 }
Beispiel #3
0
 public int Update(int id, CheckListUpdateApiModel updated)
 {
     return(_CheckListContext.Update(id, updated));
 }
Beispiel #4
0
        public JsonResult Update(int id, CheckListUpdateApiModel updated)
        {
            var data = _CheckListService.Update(id, updated);

            return(Json(data));
        }