public static MunicipalitiesRequest ValidateMunicipalitiesRequest(MunicipalitiesRequest request)
        {
            if (request == null)
            {
                throw new ValidationException("Request cannot be null", nameof(request));
            }

            return(request);
        }
Ejemplo n.º 2
0
        public async Task <MunicipalitiesResponse> GetMunicipalities(MunicipalitiesRequest municipalitiesRequest)
        {
            var municipalities = await _taxOfficeClient.GetAllMunicipalities();

            return(municipalities);
        }
Ejemplo n.º 3
0
        public async Task <ActionResult <MunicipalitiesResponse> > GetMunicipalitiesAsync(MunicipalitiesRequest request)
        {
            RequestUtilites.ValidateMunicipalitiesRequest(request);

            var municipalities = await _beneFitTaxService.GetMunicipalities(request);

            return(municipalities);;
        }