public DoCheckInOrOutAsync ( string userName, string password ) : Task |
||
userName | string | |
password | string | |
리턴 | Task |
public async Task <DateTime?> CheckInOrOutAsync() { var client = new TTClient(); #if DEBUG var checkinDatetime = await this.doCheckInOrOutMockAsync(); #else var checkinDatetime = await client.DoCheckInOrOutAsync(SecurityService.getCredential().Item1, SecurityService.getCredential().Item2); #endif if (checkinDatetime.HasValue) { var repository = new TTRepository(); var check = new TTCheck(); check.UserName = SecurityService.getCredential().Item1; check.DateTime = checkinDatetime.Value; await Historic.Historic.AddAsync(check); } return(checkinDatetime); }
public async Task<DateTime?> CheckInOrOutAsync() { var client = new TTClient(); #if DEBUG var checkinDatetime = await this.doCheckInOrOutMockAsync(); #else var checkinDatetime = await client.DoCheckInOrOutAsync(SecurityService.getCredential().Item1, SecurityService.getCredential().Item2); #endif if (checkinDatetime.HasValue) { var repository = new TTRepository(); var check = new TTCheck(); check.UserName = SecurityService.getCredential().Item1; check.DateTime = checkinDatetime.Value; await Historic.Historic.AddAsync(check); } return checkinDatetime; }