public async Task <IActionResult> CreateHotelService(int id, [FromBody] ServiceModel serviceModel) { try { await _hotelService.CreateHotelService(id, serviceModel); return(Ok()); } catch (LocationNotFoundException e) { _logger.LogInformation(e.Message, e.StackTrace); return(BadRequest()); } catch (ArgumentException e) { _logger.LogInformation(e.Message, e.StackTrace); return(BadRequest()); } catch (Exception e) { _logger.LogInformation(e.Message, e.StackTrace); return(StatusCode(StatusCodes.Status500InternalServerError)); } }