コード例 #1
0
        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));
            }
        }
コード例 #2
0
 public ActionResult EditCinemaRoom(CinemaRoom cinemaRoom)
 {
     _service.EditCinemaRoom(cinemaRoom);
     return(Ok());
 }