public int GetAction(Guid token) { var result = _actionService.CheckStatus(token).Result; if (!result.Succeeded) { return(0); } if (_date == default(DateTimeOffset)) { _date = DateTimeOffset.Now; SendEmail(token); } if (_date < DateTimeOffset.Now.AddMinutes(-5)) { SendEmail(token); } return(1); }