public async Task <IActionResult> Get([FromQuery] Guid customerGuid)
        {
            var res = await _customerRatesService.GetCustomerRates(customerGuid);

            if (res.ErrorCode != ErrorCodes.NONE)
            {
                return(BadRequest(res));
            }

            return(Ok(res));
        }
        public async Task CustomerRate_Get_CustomerRates_Test()
        {
            //Arrange
            Guid customerGuid = Guid.NewGuid();

            _customerRatesRepo.Setup(x => x.GetCustomerRate(customerGuid)).ReturnsAsync(new List <Rate> {
                new Rate {
                    IsActive = true, CustomerGuid = Guid.NewGuid(), HourlyRate = 22.05M, RateGuid = Guid.NewGuid(), DateCreated = DateTime.UtcNow, DateUpdated = null
                }, new Rate {
                    IsActive = false, CustomerGuid = Guid.NewGuid(), HourlyRate = 12.0M, RateGuid = Guid.NewGuid(), DateCreated = DateTime.UtcNow.AddDays(-20), DateUpdated = DateTime.UtcNow
                }
            });

            //Act
            var res = await _customerRatesService.GetCustomerRates(customerGuid);

            //Assert
            Assert.NotNull(res.ReturnObject);
            Assert.AreEqual(2, res.ReturnObject.Count);
            _customerRatesRepo.Verify(x => x.GetCustomerRate(customerGuid), Times.Once);
        }