public ActionResult UpdateUserName(ProfileModel objNewEmail)
        {
            #region
            Member memberData = (Member)SessionStore.GetSessionValue(SessionStore.Memberobject);
            MemberAction objMember = new MemberAction();
            Privacy privacyData = objMember.GetPrivacyByMemberId(memberData.id);
            string newemail = objNewEmail.NewEmail.ToString();
            bool updated = objMember.UpdateUserName(newemail, memberData.id.ToString());
            if (updated == true)
            {
                //send automated email
                // Creating array list for token
                ArrayList arrTokens = new ArrayList();
                arrTokens.Add(memberData.firstName + " " + memberData.lastName);
                arrTokens.Add(newemail);

                // Filling mail object
                SendMail objSendMail = new SendMail();
                objSendMail.ToEmailId = newemail;
                objSendMail.Subject = "email.member.usernameChange.subject.content";
                objSendMail.MsgBody = "email.member.usernameChange.body.content";
                objSendMail.ChangesInMessage = arrTokens;
                objSendMail.SendEmail(objSendMail);
                ViewData["UpdateLoginMsg"] = "<b>Username updated successfully.</b>";
            }
            else
            {
                ViewData["UpdateLoginMsg"] = "Error while updating username.";
            }
            ViewData["SelectedIndex"] = 2;
            GetRegions();
            MyUsername(privacyData);
            SeedContributionMessage(privacyData);
            SeedCommitmentMessage(privacyData);
            GetExternalAccountList();
            GetProfileData();
            ViewData["LoggedInMember"] = memberData.id.ToString();
            return View("Profile");
            #endregion
        }