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);
        }
예제 #2
0
        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));
 }
예제 #4
0
 public int Update(int id, PurchaseSettingThresholdUpdateApiModel updated)
 {
     return(_purchaseSettingThresholdContext.Update(id, updated));
 }