Esempio n. 1
0
 public static void UpdateWith(this IdentityUser identityUser, ProfileDTO model)
 {
     identityUser.Email    = model.Email ?? identityUser.Email;
     identityUser.UserName = model.Email ?? identityUser.UserName;
 }
Esempio n. 2
0
 public static void UpdateWith(this User user, ProfileDTO model)
 {
     user.Email     = model.Email ?? user.Email;
     user.FirstName = model.FirstName ?? model.FirstName;
     user.LastName  = model.LastName ?? user.LastName;
 }