Ejemplo n.º 1
0
 public static Domain.Models.User Map(User entity)
 {
     return(new Domain.Models.User {
         ID = entity.Id,
         Name = entity.Name,
         Email = entity.Email,
         UserRole = RolesMapper.Map(entity.RoleNavigation)
     });
 }
Ejemplo n.º 2
0
 public static User Map(Domain.Models.User model)
 {
     return(new User {
         Id = model.ID,
         Email = model.Email,
         Name = model.Name,
         RoleNavigation = RolesMapper.Map(model.UserRole)
     });
 }