public async Task <IActionResult> AddMultiplex([FromBody] MultiplexDTO multiplexDTO) { if (multiplexDTO == null) { return(StatusCode(400, new { message = Constants.MissingOrInvalidBody })); } if (!ModelState.IsValid || multiplexDTO.CityId <= 0) { return(StatusCode(400, new { message = Constants.MissingOrInvalidBody })); } try { var result = await _movieService.AddMultiplex(multiplexDTO); return(Created("AddedMultiplex", new { id = result.CityId, Name = result.MultiplexName })); } catch (CustomException ex) { return(StatusCode(400, new { message = ex.Message })); } catch (Exception ex) { return(StatusCode(500, new { message = ex.Message })); } }