예제 #1
0
 // GET: api/Products
 public List <Product> GetProducts()
 {
     return(repository.getAll());
 }
예제 #2
0
 // GET: api/Authors
 public ICollection <Author> GetAuthors()
 {
     return(authorRepository.getAll());
 }