Exemplo n.º 1
0
 public static Data.Models.Performer ToEntity(this Domain.Performer domain)
 {
     return(new Data.Models.Performer()
     {
         Id = domain.Id,
         Name = domain.Name,
         SongPerformer = domain.SongPerformer.ToEntityList()
     });
 }
Exemplo n.º 2
0
        public static externalDTO.Performer MapFromBLL(internalDTO.Performer performer)
        {
            var res = performer == null ? null : new externalDTO.Performer
            {
                Id          = performer.Id,
                Name        = performer.Name,
                Description = performer.Description,
            };

            return(res);
        }