Пример #1
0
 public ActionResult CreateZipCode(ViewAddress viewaddress, long apartamentId, long buildingId, long streetId,
                                   long cityId, long stateId, long countryId, String returnTo)
 {
     try
     {
         if (ModelState.IsValid)
         {
             _addressRepository.AddZipCode(viewaddress, GetUserId());
             return(RedirectToAction("SelectZipCode",
                                     new
             {
                 id = apartamentId,
                 buildingID = buildingId,
                 streetID = streetId,
                 cityID = cityId,
                 stateID = stateId,
                 countryID = countryId,
                 returnTo
             }));
         }
         return(View(viewaddress));
     }
     catch (Exception e)
     {
         ExceptionMessageToViewBag(e);
         return(View("Error"));
     }
 }