Пример #1
0
 public async Task <List <InventoryViewModel> > GetInventoryByWarehouse(WarehouseIdInput input)
 {
     try
     {
         return(await _procService.CallProcedureAsync <InventoryViewModel>("dbo.ReadInventoryFromWarehouse", new { input.WarehousesId }));
     }
     catch
     {
         return(new List <InventoryViewModel>());
     }
 }
Пример #2
0
        public async Task <JsonResult> GetInventoryByWarehouse([FromBody] WarehouseIdInput input)
        {
            var result = await _material.GetInventoryByWarehouse(input);

            return(await GenerateResult(result, _userSettings));
        }