private async Task DeleteLoginRequest() { var loginRequest = await _loginRequestRepository.Get(CreateLoginRequest()); if (loginRequest != null) { await _loginRequestRepository.Delete(loginRequest); } }
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); } }
public Task Delete(LoginRequest loginRequest) { return(_loginRequestRepository.Delete(loginRequest)); }