public IActionResult List()
        {
            if (!_repository.Any())
            {
                return(View("Empty"));
            }

            List <WarehouseViewModel> warehouseVM = new List <WarehouseViewModel>();

            var warehouses = _repository.GetAll();

            foreach (var warehouse in warehouses)
            {
                warehouseVM.Add(new WarehouseViewModel
                {
                    Warehouse = warehouse,
                });
            }

            return(View(warehouseVM));
        }