Exemplo n.º 1
0
        public IHttpActionResult Put(int id, TheaterBindingModel theater)
        {
            var updatedTheater = _theaterService.Update(id, theater);

            if (updatedTheater == null)
            {
                return(BadRequest());
            }
            else
            {
                return(Ok(updatedTheater));
            }
        }
Exemplo n.º 2
0
 // PUT: api/Theaters/5
 public void Put(int id, TheaterParam theaterParam)
 {
     _theaterService.Update(id, theaterParam);
 }