コード例 #1
0
 public ActionResult <List <LaptopOutput> > list()
 {
     return(_laptopRepository.list()
            .Select(laptop => new LaptopOutput(laptop))
            .ToList());
 }