public async Task <List <InventoryViewModel> > GetInventoryByWarehouse(WarehouseIdInput input) { try { return(await _procService.CallProcedureAsync <InventoryViewModel>("dbo.ReadInventoryFromWarehouse", new { input.WarehousesId })); } catch { return(new List <InventoryViewModel>()); } }
public async Task <JsonResult> GetInventoryByWarehouse([FromBody] WarehouseIdInput input) { var result = await _material.GetInventoryByWarehouse(input); return(await GenerateResult(result, _userSettings)); }