public IActionResult EditCinemaRoom([FromBody] CinemaRoomInfo cinemaRoomInfo, int cinemaId, int cinemaRoomId) { Result result = сinemaService.EditCinemaRoom(cinemaId, cinemaRoomId, cinemaRoomInfo); if (result.ResultOk) { return(Ok()); } else { return(NotFound(result)); } }
public ActionResult EditCinemaRoom(CinemaRoom cinemaRoom) { _service.EditCinemaRoom(cinemaRoom); return(Ok()); }