// PUT api/Shows/5 public ShowDto Put([FromBody] ShowDto show) { var updatedShow = show.ConvertFromDto(); ShowService.Update(updatedShow); return(updatedShow.ConvertToDto()); }
// POST api/Shows public ShowDto Post([FromBody] ShowDto show) { var newShow = show.ConvertFromDto(); ShowService.Add(newShow); return(newShow.ConvertToDto()); }
// DELETE api/Shows/5 public void Delete([FromBody] ShowDto show) { ShowService.Delete(show.ConvertFromDto()); }