Exemple #1
0
 public static User UpdateEntity(this AuthorizationUserData userData, User entity)
 => entity?.Update(userData.DisplayName, userData.ImageUrl, userData.IsAdmin);
Exemple #2
0
 public static User ToEntity(this AuthorizationUserData userData)
 => new User(userData.UserGuid, userData.DisplayName, userData.Email, userData.ImageUrl, userData.IsAdmin);