async Task <IndependentDistributionNetworkOperatorsResponse> GetIDNOAsync() { var result = new IndependentDistributionNetworkOperatorsResponse { Success = true, Operators = GetDistributionOperators() }; await _logServiceClient.PostAsync(new LogRequest { Message = "Got the Distribution Operators" }); return(result); }
async Task <IndependentDistributionNetworkOperatorsResponse> GetIDNOByAreaIdAsync(IndependentDistributionNetworkOperatorsRequest request) { var validationResult = this.Validate(request); if (!validationResult.IsValid) { await _logServiceClient.PostAsync(new LogRequest { Message = $"Failed to get Profile Data for {request.AreaId}" }); return(new IndependentDistributionNetworkOperatorsResponse { Success = false, Errors = validationResult.FormattedErrors }); } var result = new IndependentDistributionNetworkOperatorsResponse { Success = true, Operators = GetByAreaId(request.AreaId) }; await _logServiceClient.PostAsync(new LogRequest { Message = $"Retrieved Profile Data for {request.AreaId}: {result.Operators}" }); return(result); }