private IPrincipal CreatePrincipal(User user)
 {
     CustomPrincipal ret = new CustomPrincipal(user.Email);
     ret.Id = user.Id;
     ret.Name = user.Name;
     ret.Email = user.Email;
     return ret;
 }
Exemple #2
0
 public static dto.User ConvertUser(dal.User user)
 {
     dto.User ret = new dto.User();
     ret.Id = user.Id;
     ret.Name = user.Name;
     ret.Email = user.Email;
     return ret;
 }