public ActionResult UserRegistration(UserRegistration userRegistration)
        {
            UserDomainLogic userdomainLogic = new UserDomainLogic();

            userRegistration.UserAddresses = new List <UserAddress>();
            UserAddress usrAddress = new UserAddress();

            usrAddress.Address  = Convert.ToString(HttpContext.Request.Form["BillingAddress.Address"]);
            usrAddress.PostCode = Convert.ToString(HttpContext.Request.Form["BillingAddress.PostCode"]);
            usrAddress.CityGuid = userRegistration.BillingAddress.CityGuid;

            usrAddress.Country   = userRegistration.BillingAddress.Country;
            usrAddress.Latitude  = userRegistration.BillingAddress.Latitude;
            usrAddress.Longitude = userRegistration.BillingAddress.Longitude;
            usrAddress.PlaceId   = userRegistration.BillingAddress.PlaceId;

            usrAddress.AddressType = Bringly.Domain.Enums.User.UserAddressType.Billing.ToString();
            var cityName = Convert.ToString(HttpContext.Request.Form["BillingAddress.CityName"]);

            if (!string.IsNullOrEmpty(cityName) && usrAddress.CityGuid == Guid.Empty)
            {
                Bringly.Domain.City city = new Domain.City
                {
                    CityGuid    = Guid.NewGuid(),
                    CityName    = cityName,
                    CityUrlName = cityName
                };

                CommonDomainLogic commonDomainLogic = new CommonDomainLogic();
                usrAddress.CityGuid = commonDomainLogic.AddCity(city);
            }

            userRegistration.UserAddresses.Add(usrAddress);
            bool result = userdomainLogic.AddUserProfile(userRegistration);

            if (result)
            {
                return(RedirectToAction("thankregistration", "home"));
            }

            return(RedirectToAction("userregistration", "home"));
        }