public ActionResult DeleteBox(int boxID) { Box deletedBox = boxesRepository.DeleteBox(boxID); if (deletedBox != null) { TempData["message"] = string.Format("Usunieto {0}", deletedBox.Name); } return(RedirectToAction("BoxesList")); }
public ActionResult DeleteBox(int boxID) { Box deletedBox = boxesRepository.DeleteBox(boxID); if (deletedBox != null) { TempData["message"] = string.Format("Usunieto {0}", deletedBox.Name); } return(RedirectToAction("BoxesList")); }