Example #1
0
        public StoreInoutGoods Create(StoreInoutGoodsCreateApiModel created, int userId)
        {
            var setting = new StoreInoutGoods
            {
                StoreInoutId    = created.StoreInoutId,
                HospitalGoodsId = created.HospitalGoodsId,
                Qty             = created.Qty,
                CreateTime      = DateTime.Now,
            };

            _context.StoreInoutGoods.Add(setting);
            _context.SaveChanges();

            return(setting);
        }
Example #2
0
 public StoreInoutGoods Create(StoreInoutGoodsCreateApiModel created, int userId)
 {
     return(_StoreInoutGoodsContext.Create(created, userId));
 }
Example #3
0
 public StoreInoutGoods Create(StoreInoutGoodsCreateApiModel created, int userId)
 {
     return(_StoreInoutGoodsRespository.Create(created, userId));
 }
        public JsonResult Post(StoreInoutGoodsCreateApiModel created)
        {
            var data = _StoreInoutGoodsService.Create(created, Profile.Id);

            return(Json(data));
        }