public ActionResult CreateApartament(ViewAddress viewaddress, long buildingId, long streetId, long cityId, long stateId, long countryId, String returnTo) { try { if (ModelState.IsValid) { _addressRepository.AddApartament(viewaddress, GetUserId()); return(RedirectToAction("SelectApartament", new { id = buildingId, streetID = streetId, cityID = cityId, stateID = stateId, countryID = countryId, returnTo })); } return(View(viewaddress)); } catch (Exception e) { ExceptionMessageToViewBag(e); return(View("Error")); } }