コード例 #1
0
        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);
        }
コード例 #2
0
        public JsonResult Post(PurchaseSettingThresholdCreateApiModel created)
        {
            var data = _purchaseSettingThresholdService.Create(created, Profile.Id);

            return(Json(data));
        }
コード例 #3
0
 public PurchaseSettingThreshold Create(PurchaseSettingThresholdCreateApiModel created, int userId)
 {
     return(_purchaseSettingThresholdRespository.Create(created, userId));
 }
コード例 #4
0
 public PurchaseSettingThreshold Create(PurchaseSettingThresholdCreateApiModel created, int userId)
 {
     return(_purchaseSettingThresholdContext.Create(created, userId));
 }