public bool ForgotPassword(CoreUserLoginModel email) { User userExist = db.Users.Where(p => p.Email == email.Email).FirstOrDefault(); if (userExist != null) { SendNotification notify = new SendNotification(); notify.SendMailForgotPassword(userExist.Email, userExist.Name, userExist.Password, "Forgot Password"); return(true); } else { return(false); } }