Esempio n. 1
0
 public ActionResult CreateCountry(ViewAddress viewaddress, String returnTo)
 {
     try
     {
         if (ModelState.IsValid)
         {
             _addressRepository.AddCountry(viewaddress, GetUserId());
             return(RedirectToAction("SelectCountry", new { returnTo }));
         }
         return(View(viewaddress));
     }
     catch (Exception e)
     {
         ExceptionMessageToViewBag(e);
         return(View("Error"));
     }
 }