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