public async Task <LoginRequest> Get(string id) { // First delete expired login requests. await DeleteAllExpired(); return(await _loginRequestRepository.Get(id)); }
private async Task DeleteLoginRequest() { var loginRequest = await _loginRequestRepository.Get(CreateLoginRequest()); if (loginRequest != null) { await _loginRequestRepository.Delete(loginRequest); } }