public IHttpActionResult Put(int id, TheaterBindingModel theater) { var updatedTheater = _theaterService.Update(id, theater); if (updatedTheater == null) { return(BadRequest()); } else { return(Ok(updatedTheater)); } }
// PUT: api/Theaters/5 public void Put(int id, TheaterParam theaterParam) { _theaterService.Update(id, theaterParam); }