예제 #1
0
 public IActionResult EditSeasons(int id, Seasons seasons)
 {
     if (id != seasons.Id)
     {
         return(ViewBag.Message = "Invalid Id");
     }
     _db.EditSeason(seasons);
     return(RedirectToAction(nameof(GetSeasons)));
 }