public async Task <IActionResult> AddHallsAsync(UpsertHallsRequest request) { List <HallModel> halls = request.Halls.Adapt <List <HallModel> >(); List <SeatModel> seats = request.Seats.Adapt <List <SeatModel> >(); try { await _hallService.UpsertHallsAsync( new CinemaHallsModel( halls, seats, request.CinemaId ) ); return(NoContent()); } catch (ConflictException e) { return(Conflict(e.Message)); } }