Example #1
0
        public ActionResult Delete(int id)
        {
            if (id == null)
            {
                return(RedirectToAction("GetAllWarehouses"));
            }

            if (!(_warehouseRepository.Exists(id)))
            {
                return(RedirectToAction("GetAllWarehouses"));
            }
            return(View(_warehouseRepository.GetWarehouseById(id)));
        }