public ActionResult ForgotPassword(LoginViewModel model)
        {
            UserMaster user = UserMaster.GetUserByEmail(model.Email, con);

            if (user == null)
            {
                ModelState.AddModelError("", "Email is not registered with us.");
                return(View(model));
            }

            string rnd = CommonStuff.GetRandomString(30);

            UserMaster.GeneratePasswordToken(model.Email, rnd, con);
            CommonStuff.SendEmail(model.Email, "Reset your password", CommonStuff.getEmailPasswordReset(user.email, rnd));
            return(RedirectToAction("Success", "Account", new { msg = "A password reset link has been send on your email id.  Please check your spam folder if not deliver in inbox" }));
            //return View();
        }