public int Update(int id, PurchaseSettingThresholdUpdateApiModel updated) { var setting = _context.PurchaseSettingThreshold.First(x => x.Id == id); setting.DownQty = updated.DownQty; setting.UpQty = updated.UpQty; setting.ThresholdTypeId = updated.ThresholdTypeId; _context.PurchaseSettingThreshold.Update(setting); _context.SaveChanges(); return(setting.Id); }
public JsonResult Update(int id, PurchaseSettingThresholdUpdateApiModel updated) { var data = _purchaseSettingThresholdService.Update(id, updated); return(Json(data)); }
public int Update(int id, PurchaseSettingThresholdUpdateApiModel updated) { return(_purchaseSettingThresholdRespository.Update(id, updated)); }
public int Update(int id, PurchaseSettingThresholdUpdateApiModel updated) { return(_purchaseSettingThresholdContext.Update(id, updated)); }