public async Task <IActionResult> Activate(string tokenId) { var user = await _repo.ActivateUser(tokenId); if (user.Activated) { return(Redirect("https://mxstrong.azurewebsites.net/login")); } return(BadRequest("Wrong activation token")); }
public virtual async Task <NetResult <LoginResult> > ActivateUser([FromBody] ActivateUserModel model) { try { return(await _user.ActivateUser(model)); } catch (Exception ext) { return(ext); } }