public IActionResult EditHall([FromBody] HallInfo hall, int cinemaId, int hallId) { if (!_сinemaService.CheckCinemaExists(cinemaId)) { return(NotFound(new Response(ErrorOfCinemaNonexistence))); } if (!_сinemaService.CheckHallExists(cinemaId, hallId)) { return(NotFound(new Response(ErrorOfHallNonexistence))); } if (!ModelState.IsValid) { return(BadRequest(new Response(ModelState))); } _сinemaService.EditHall(hallId, hall); return(Ok(new Response())); }