public static MunicipalitiesRequest ValidateMunicipalitiesRequest(MunicipalitiesRequest request) { if (request == null) { throw new ValidationException("Request cannot be null", nameof(request)); } return(request); }
public async Task <MunicipalitiesResponse> GetMunicipalities(MunicipalitiesRequest municipalitiesRequest) { var municipalities = await _taxOfficeClient.GetAllMunicipalities(); return(municipalities); }
public async Task <ActionResult <MunicipalitiesResponse> > GetMunicipalitiesAsync(MunicipalitiesRequest request) { RequestUtilites.ValidateMunicipalitiesRequest(request); var municipalities = await _beneFitTaxService.GetMunicipalities(request); return(municipalities);; }