예제 #1
0
 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;
 }
예제 #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;
 }