Example #1
0
 public ActionResult Delete(int?id)
 {
     try
     {
         StadiumViewModel stadium = new StadiumViewModel();
         var stadiumDTO           = stadiumService.GetStadium(id);
         stadium.Name = stadiumDTO.Name;
         return(View(stadium));
     }
     catch (ValidationException e)
     {
         return(Content("Not Found"));
     }
 }