Example #1
0
 internal User Sanitize()
 {
     return(JsonUser.Create(this).ToUser());
 }
Example #2
0
 public static User ToUser(this JsonUser juser)
 {
     return(juser == null ? null : new User {
         Id = juser.Id, Email = juser.Email, UserName = juser.UserName, Employee = juser.Employee
     });
 }