/// <summary>
        /// 
        /// </summary>
        /// <param name="UserName"></param>
        public void CreateAndEmailVerificationToken(string UserName)
        {
            //generate password token
            var token = WebSecurity.GeneratePasswordResetToken(UserName);

            //create url with above token
            var resetLink = "<a href='" + Url.Action("ResetPassword", "Account", new { un = UserName, rt = token }, "http") + "'>Reset Password</a>";

            //get user emailid
            var members = UoW.Members.GetAll();
            var member = members.FirstOrDefault(u => u.DisplayName == UserName);

            var emailService = new EmailService();

            if (member != null)
            {
                var email = member.Email;
                //send mail
                string subject = "Password Reset Token";
                string body = "<b>Please find the Password Reset Token</b><br/>" + resetLink; //edit it
                try
                {
                    emailService.SendEmail(email, subject, body);
                    TempData["Message"] = "Mail Sent.";
                }
                catch (Exception ex)
                {
                    TempData["Message"] = "Error occured while sending email." + ex.Message;
                }
            }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="un"></param>
        /// <param name="newPassword"></param>
        public void CreateEmail(string un, string newPassword)
        {
            //get user emailid to send password
            var members = UoW.Members.GetAll();
            var member = members.FirstOrDefault(u => u.DisplayName == un);

            if (member != null)
            {
                var email = member.Email;
                var emailService = new EmailService();
                //send email
                string subject = "New Password";
                string body = "<b>Please find the New Password</b><br/>" + newPassword; //edit it
                try
                {
                    emailService.SendEmail(email, subject, body);
                    TempData["Message"] = "Mail Sent.";
                }
                catch (Exception ex)
                {
                    TempData["Message"] = "Error occured while sending email." + ex.Message;
                }
            }

            //display message
            TempData["Message"] = "Success! Check email we sent. Your New Password Is " + newPassword;
        }