public async Task <ActionResult <List <string> > > GetCongregationsAsync(CongregationsRequest request) { var validRequest = RequestUtilites.ValidateCongregationsRequest(_taxOfficeClient, request); var congregations = await _taxOfficeClient.GetAllCongregations(validRequest.Result.IncomeYear, validRequest.Result.Municipality); return(congregations); }
public async Task <ActionResult <MunicipalitiesResponse> > GetMunicipalitiesAsync(MunicipalitiesRequest request) { RequestUtilites.ValidateMunicipalitiesRequest(request); var municipalities = await _beneFitTaxService.GetMunicipalities(request); return(municipalities);; }
public async Task <ActionResult <TaxResponse> > GetBenefitTaxAsync([FromBody] BenefitTaxRequest request) { await RequestUtilites.ValidatebenfitTaxRequestAsync(_taxOfficeClient, request); var benefitTaxSummary = await _beneFitTaxService.CalculateNetCost(request); return(Ok(new TaxResponse(benefitTaxSummary.NetCost))); }