public async Task <ActionResult> VerifyEmail(string token) { string strconfrim = "Verification code expired or invalid."; bool conf = await _helperService.ActivateUser(token); if (conf) { strconfrim = "Email verified successfully."; } return(Ok(new { StatusCode = StatusCodes.Status200OK, result = strconfrim })); }