Пример #1
0
 public LoaiModel CreateLoai([FromBody] LoaiModel model)
 {
     model.ma_loai = Guid.NewGuid().ToString();
     _itemBusiness.Create(model);
     return(model);
 }
Пример #2
0
 public LoaiModel CreateItem([FromBody] LoaiModel model)
 {
     _itemBusiness.Create(model);
     return(model);
 }