public async Task <ActionResult <IEnumerable <Demand> > > GetDemandsByCompanyID(string CustomerID) { var demands = await _repository.getDemandsByCustomerID(CustomerID); if (demands == null) { _logger.LogError($"Demands with customerID: {CustomerID}, not found!"); return(NotFound()); } return(Ok(demands)); }