Пример #1
0
 public async void SaveLoginAttempt(string username, DateTime loginTime, bool isSuccesful)
 {
     LoginAttemptDTO laDTO = new LoginAttemptDTO {
         Username = username, LoginTime = loginTime, IsSuccessful = isSuccesful
     };
     //bool x = loginService.AddLoginAttempt(laDTO).Result; //niepotrzebny bool
     await loginService.AddLoginAttempt(laDTO);
 }