示例#1
0
 public ActionResult CreateStreet(ViewAddress viewaddress, long cityId, long stateId, long countryId,
                                  String returnTo)
 {
     try
     {
         if (ModelState.IsValid)
         {
             _addressRepository.AddStreet(viewaddress, GetUserId());
             return(RedirectToAction("SelectStreet", new { id = cityId, stateID = stateId, countryID = countryId, returnTo }));
         }
         return(View(viewaddress));
     }
     catch (Exception e)
     {
         ExceptionMessageToViewBag(e);
         return(View("Error"));
     }
 }