public ActionResult RegisterFirm(RegistrationModel model, String returnUrl)
 {
     ViewBag.ReturnUrl = returnUrl;
     if (ModelState.IsValid)
     {
         if (CreateAccount(model))
         {
             try
             {
                 service.CreateFirm(model.Firm, model.Address, model.RegisterData.Email);
                 service.Save();
                 WebSecurity.Login(model.RegisterData.Email, model.RegisterData.Password);
                 return(RedirectToLocal(returnUrl));
             }
             catch (Exception ex)
             {
                 HandleRegistrationError(model, ex);
             }
         }
     }
     ViewBag.UserPartialViewName = "_RegisterFirmPartial";
     CreateCountryList(model.GetSelectedCountry());
     CreateUserTypeList("firm");
     return(View("Register", model));
 }