public async Task <TaxRuleVw> AddTaxRuleAsync(Guid municipalityId, TaxRuleDto rule) { var taxRule = _mapper.Map <TaxRule>(rule); await _taxRuleDomainService.AddTaxRuleAsync(municipalityId, taxRule); return(_mapper.Map <TaxRuleVw>(taxRule)); }
public async Task <TaxRuleVw> EditTaxRuleAsync(Guid taxRuleId, TaxRuleDto rule) { var taxRule = _mapper.Map <TaxRule>(rule); var error = await _taxRuleDomainService.EditTaxRuleAsync(taxRuleId, taxRule); if (!string.IsNullOrWhiteSpace(error)) { var fault = new FaultHandle(error); throw new FaultException <FaultHandle>(fault); } return(_mapper.Map <TaxRuleVw>(taxRule)); }
public Task <TaxRuleVw> EditTaxRuleAsync(Guid taxRuleId, TaxRuleDto rule) { return(Channel.EditTaxRuleAsync(taxRuleId, rule)); }
public Task <TaxRuleVw> AddTaxRuleAsync(Guid municipalityId, TaxRuleDto rule) { return(Channel.AddTaxRuleAsync(municipalityId, rule)); }