예제 #1
0
        private async Task DeleteLoginRequest()
        {
            var loginRequest = await _loginRequestRepository.Get(CreateLoginRequest());

            if (loginRequest != null)
            {
                await _loginRequestRepository.Delete(loginRequest);
            }
        }
예제 #2
0
        private async Task DeleteLoginRequests()
        {
            var loginRequests = await _loginRequestRepository.GetAll();

            var testLoginRequests = loginRequests.Where(x => x.PrivateChatId == _testOptions.PrivateTestChatId).ToList();

            if (testLoginRequests.Any())
            {
                await _loginRequestRepository.Delete(testLoginRequests);
            }
        }
예제 #3
0
 public Task Delete(LoginRequest loginRequest)
 {
     return(_loginRequestRepository.Delete(loginRequest));
 }