Ejemplo n.º 1
0
 public ActionResult <List <LaptopOutput> > findByBrand(string brand)
 {
     return(_laptopRepository
            .findByBrand(brand)
            .Select(laptop => new LaptopOutput(laptop))
            .ToList());
 }