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) }); }
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) }); }