Exemplo n.º 1
0
        public IHttpActionResult Get(int id)
        {
            var theater = _theaterService.Get(id);

            if (theater != null)
            {
                return(Ok(theater));
            }
            else
            {
                return(NotFound());
            }
        }
Exemplo n.º 2
0
 // GET: api/Theaters
 public IEnumerable <Theater> Get()
 {
     return(_theaterService.Get());
 }