public ActionResult Reset() { AccountResetVM model = new AccountResetVM(); TryUpdateModel(model); UsersService usersService = new UsersService(); User user = usersService.GetAll(u => u.Email == model.Email).FirstOrDefault(); user.Password = Guid.NewGuid().ToString(); usersService.Save(user); EmailService.SendEmail(user, ControllerContext); return(View(model)); }
public ActionResult Reset(string str) { AccountResetVM model = new AccountResetVM(); return(View(model)); }