public IActionResult CreateProviderService(ProviderServiceDTO providerServiceDTO) { if (!ModelState.IsValid) { _logger.LogWarning(HttpStatusCode.BadRequest.ToString()); return(BadRequest(HttpStatusCode.BadRequest)); } var providerService = _providerService.CreateProviderService(providerServiceDTO); if (providerService == null) { _logger.LogWarning(HttpStatusCode.BadRequest.ToString()); return(BadRequest(HttpStatusCode.BadRequest)); } return(Ok(providerService)); }