示例#1
0
 internal User Sanitize()
 {
     return(JsonUser.Create(this).ToUser());
 }
示例#2
0
文件: JsonUser.cs 项目: lionsoft/SAM
 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
     });
 }