示例#1
0
        public async Task <LoginRequest> Get(string id)
        {
            // First delete expired login requests.
            await DeleteAllExpired();

            return(await _loginRequestRepository.Get(id));
        }
示例#2
0
        private async Task DeleteLoginRequest()
        {
            var loginRequest = await _loginRequestRepository.Get(CreateLoginRequest());

            if (loginRequest != null)
            {
                await _loginRequestRepository.Delete(loginRequest);
            }
        }