예제 #1
0
 public ActionResult Delete(int id, FormCollection collection)
 {
     try
     {
         var result = serviceRace.RemoveRace(id);
         if (result)
         {
             return(RedirectToAction("Index"));
         }
         else
         {
             return(View());
         }
     }
     catch
     {
         return(View());
     }
 }