public RegularUserVM(RegularUserDTO regularUser) { Id = regularUser.Id; FirstName = regularUser.FirstName; LastName = regularUser.LastName; UserName = regularUser.UserName; AverageWordsPerMinute = regularUser.AverageWordsPerMinute; Wins = regularUser.Wins; Loses = regularUser.Loses; CurrentRoomId = regularUser.CurrentRoomId; IsInRoom = regularUser.IsInRoom; }
private async Task LoadAsync(IdentityUser user) { var username = await _userManager.GetUserNameAsync(user); RegularUser = await _regularUserService.GetRegularUserByUserNameAsync(username); }