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);
        }
Ejemplo n.º 2
0
        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));
 }
Ejemplo n.º 4
0
 public PurchaseSettingThreshold Create(PurchaseSettingThresholdCreateApiModel created, int userId)
 {
     return(_purchaseSettingThresholdContext.Create(created, userId));
 }