public PurchaseSettingThreshold Create(PurchaseSettingThresholdCreateApiModel created, int userId) { var setting = new PurchaseSettingThreshold { PurchaseSettingId = created.PurchaseSettingId, HospitalGoodsId = created.HospitalGoodsId, DownQty = created.DownQty, UpQty = created.UpQty, CreateUserId = userId, CreateTime = DateTime.Now, ThresholdTypeId = created.ThresholdTypeId, }; _context.PurchaseSettingThreshold.Add(setting); _context.SaveChanges(); return(setting); }
public JsonResult Post(PurchaseSettingThresholdCreateApiModel created) { var data = _purchaseSettingThresholdService.Create(created, Profile.Id); return(Json(data)); }
public PurchaseSettingThreshold Create(PurchaseSettingThresholdCreateApiModel created, int userId) { return(_purchaseSettingThresholdRespository.Create(created, userId)); }
public PurchaseSettingThreshold Create(PurchaseSettingThresholdCreateApiModel created, int userId) { return(_purchaseSettingThresholdContext.Create(created, userId)); }