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); }
public StoreInoutGoods Create(StoreInoutGoodsCreateApiModel created, int userId) { return(_StoreInoutGoodsContext.Create(created, userId)); }
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)); }