Пример #1
0
        public ActionResult UserRegistration()
        {
            UserRegistration    userregistration    = new Domain.User.UserRegistration();
            UserDomainLogic     userDomainLogic     = new UserDomainLogic();
            BusinessDomainLogic businessDomainLogic = new BusinessDomainLogic();
            CommonDomainLogic   commonDomainLogic   = new CommonDomainLogic();

            userregistration.Cities = userDomainLogic.GetCities();
            userregistration.Cities.Add(new Domain.City {
                CityGuid = Guid.Empty, CityName = "Other", CityUrlName = "Other"
            });
            userregistration.Countries        = commonDomainLogic.GetCountryList();
            userregistration.BusinessTypeList = businessDomainLogic.GetBusinessTypes();
            return(View(userregistration));
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ActionResult NewRegistrationfromSocialPage()
        {
            bool isFromSocialMedia = Convert.ToBoolean(QueryStringHelper.getValue("sm"));

            if (!isFromSocialMedia)
            {
                isFromSocialMedia = TempData["isFromSocialMedia"] == null ? false : (bool)TempData["isFromSocialMedia"];
            }
            ViewBag.isFromSocialMedia = isFromSocialMedia;
            UserDomainLogic     userDomainLogic     = new UserDomainLogic();
            BusinessDomainLogic businessDomainLogic = new BusinessDomainLogic();
            UserProfile         userProfile         = userDomainLogic.FindUser(UserVariables.LoggedInUserGuid);
            CommonDomainLogic   commonDomainLogic   = new CommonDomainLogic();

            userProfile.BusinessTypeList = businessDomainLogic.GetBusinessTypes();
            userProfile.Cities           = commonDomainLogic.GetCities();
            userProfile.Cities.Add(new Domain.City {
                CityGuid = Guid.Empty, CityName = "Other", CityUrlName = "Other"
            });
            ViewBag.isFromSocialMedia = isFromSocialMedia;
            return(View(userProfile));
        }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ActionResult ManageBusinessType()
        {
            BusinessDomainLogic businessDomainLogic = new BusinessDomainLogic();

            return(View(businessDomainLogic.GetBusinessTypes()));
        }