public IActionResult ChangePasswordByEmail(ChangePasswordByEmailViewModel model) { try { emailService.ChangePasswordByEmail(new UserModel { Login = model.Login }); } catch (Exception ex) { return(Content(ex.Message)); } return(Content("Your new password sent by email")); }