Exemplo n.º 1
0
 // GET: api/Paintings
 public IEnumerable <Painting> Get()
 {
     logger.Write("GET for paintings", LogLevel.INFO);
     return(paintingsRepository.GetAll());
 }
Exemplo n.º 2
0
 public IEnumerable <Painting> GetPaintings()
 {
     _logger.Write("Get all paintings was called", LogLevel.INFO);
     return(_pr.GetAll());
 }
Exemplo n.º 3
0
 // GET api/Paintings
 public IQueryable <Painting> GetPaintings()
 {
     return(repo.GetAll().AsQueryable());
 }
Exemplo n.º 4
0
 // GET: api/Paintings
 public IEnumerable <Painting> Get()
 {
     return(db.GetAll());
 }
Exemplo n.º 5
0
 // GET api/values
 public IEnumerable <Painting> Get()
 {
     _logger.Write("GET All for Paintings was called", LogLevel.Info);
     return(repo.GetAll());
 }