Ejemplo n.º 1
0
 public GameVM(GameDto gameDto)
 {
     Id          = gameDto.Id;
     Name        = gameDto.Name;
     Description = gameDto.Description;
     PlayerCount = gameDto.PlayerCount;
     BrandId     = gameDto.Brand.Id;
     Brand       = new BrandVM
     {
         Id          = gameDto.Brand.Id,
         Name        = gameDto.Brand.Name,
         Country     = gameDto.Brand.Country,
         Description = gameDto.Brand.Description
     };
     KindId = gameDto.Kind.Id;
     Kind   = new KindVM
     {
         Id          = gameDto.Kind.Id,
         Name        = gameDto.Kind.Name,
         Description = gameDto.Kind.Description,
         Suitability = gameDto.Kind.Suitability
     };
 }