public ActionResult <dynamic> Activate([FromQuery] string hash) { string message = null; if (usersManager.Activate(hash, ref message)) { return(new { success = true, message = "User account is successfully active." }); } return(Return500Error(message)); }
public ActionResult Activate(int id) { var result = _usermanager.Activate(id); return(RedirectToAction("Index")); }