Exemple #1
0
 public ActionResult AddCountry(AddCountryVM model)
 {
     try
     {
         db.AddCountryToEvent(model);
         return(RedirectToAction("EventDetails", new { id = model.Year }));
     }
     catch
     {
         model.Countries = new SelectList(db.GetAllCountries(), "id", "Name");
         return(View(model));
     }
 }