public IActionResult DeleteWeek(int weekId) { try { _repository.DeleteWeek(weekId); return(RedirectToAction("Weeks")); } catch (Exception ex) { return(View("Error", ex)); } }