public string GetUserProfile()
    {
        string retProfile = "";

        mCurrentUser = (UserBase)Session["CurrentUser"];

        if (mCurrentUser == null)
        {
            return("Please Reload Page");
        }


        if (!mCurrentUser.Location.IsLoaded())
        {
            ObjectLocationBO objectLocationBO = new ObjectLocationBO();
            objectLocationBO.Load(mCurrentUser.Location);
        }

        retProfile += mCurrentUser.Email + "(#)";
        retProfile += mCurrentUser.FirstName + "(#)";
        retProfile += mCurrentUser.LastName + "(#)";
        retProfile += "EGender_" + ((int)mCurrentUser.Gender).ToString() + "(#)";
        retProfile += "ECountry_" + ((int)mCurrentUser.Location.Country).ToString() + "(#)";

        return(retProfile);
    }
    public EventDetailsWebService()
    {
        mEventBaseBO           = new EventBaseBO();
        mUserBaseBO            = new UserBaseBO();
        mResourceDescriptionBO = new ResourceDescriptionBO();
        mEventTimeInfoBO       = new EventTimeInfoBO();
        mObjectLocationBO      = new ObjectLocationBO();
        mUserNameImageListBO   = new UserNameImageListBO();
        mItemBaseBO            = new ItemBaseBO();
        mHoldingsInfoBO        = new HoldingsInfoBO();
        mEventsInvitationsBO   = new EventsInvitationsBO();
        mUsersConnectionBO     = new UsersConnectionBO();

        Session["HoldingsInfoBO"] = mHoldingsInfoBO;

        //Uncomment the following line if using designed components
        //InitializeComponent();
    }
    public string UpdateUser(string email, string password, string firstName, string lastName, string gender, string country)
    {
        mCurrentUser = (UserBase)Session["CurrentUser"];

        if (mCurrentUser == null)
        {
            return("Please Reload Page");
        }

        UserBaseBO userBaseBO = new UserBaseBO();

        ECountry eCountry = (ECountry)Int32.Parse(country.Substring(("ECountry_").Length));
        EGender  eGender  = (EGender)Int32.Parse(gender.Substring(("EGender_").Length));

        mCurrentUser.Email     = email;
        mCurrentUser.FirstName = firstName;
        mCurrentUser.LastName  = lastName;
        mCurrentUser.Gender    = eGender;

        if (!mCurrentUser.Location.IsLoaded())
        {
            ObjectLocationBO objectLocationBO = new ObjectLocationBO();
            objectLocationBO.Load(mCurrentUser.Location);
        }

        mCurrentUser.Location.Country = eCountry;

        userBaseBO.Save(mCurrentUser);

        LoginManagerBO loginManagerBO = new LoginManagerBO();

        if (password.Length < 6)
        {
            loginManagerBO.UpdateUserLoginInfo(mCurrentUser.UniqueID, email);
        }
        else
        {
            loginManagerBO.UpdateUserLoginInfo(mCurrentUser.UniqueID, email, password);
        }

        Session["CurrentUser"] = mCurrentUser;

        return("Success");
    }