public IActionResult EnableAccount(int id) { Login entity = new Login(); entity = _servise.GetByID(id); entity.isRegisted = true; _servise.Save(entity); return(View()); }
public JsonResult ChangeEmail(string email) { Login user = new Login(); LoginServise _login = new LoginServise(); user = _login.GetByID(id); user.Email = _encript.EncryptData(email); _login.Save(user); return(Json("ok")); }
public JsonResult ChangePassword(string password) { Login user = new Login(); LoginServise _login = new LoginServise(); user = _login.GetByID(id); user.Password = _encript.EncryptData(password); _login.Save(user); return(Json("ok")); }