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