Ejemplo n.º 1
0
 public IEnumerable <ItemDto> GetItemsByIds(IEnumerable <int> ids)
 {
     return(_store.GetItemsByIds(ids).Select(x => new ItemDto()
     {
         Id = x.Id,
         Name = x.Name,
         Author = x.Author,
         Price = x.Price,
         AvailableQuantity = x.AvailableQuantity
     }));
 }