public IHttpActionResult Get(int id) { var theater = _theaterService.Get(id); if (theater != null) { return(Ok(theater)); } else { return(NotFound()); } }
// GET: api/Theaters public IEnumerable <Theater> Get() { return(_theaterService.Get()); }