/// <summary> /// Deletes a <see cref="ITaxMethod"/> /// </summary> /// <param name="taxationGatewayMethod">The <see cref="ITaxationGatewayMethod"/> to be deleted</param> public void DeleteTaxMethod(ITaxationGatewayMethod taxationGatewayMethod) { GatewayProviderService.Delete(taxationGatewayMethod.TaxMethod); }
/// <summary> /// Saves a <see cref="ITaxationGatewayMethod"/> /// </summary> /// <param name="taxationGatewayMethod">The <see cref="ITaxationGatewayMethod"/> to be saved</param> public void SaveTaxMethod(ITaxationGatewayMethod taxationGatewayMethod) { GatewayProviderService.Save(taxationGatewayMethod.TaxMethod); // reset the TaxMethods so that they need to be pulled on the next request }
internal static TaxMethodDisplay ToTaxMethodDisplay(this ITaxationGatewayMethod taxGatewayMethod) { return(AutoMapper.Mapper.Map <TaxMethodDisplay>(taxGatewayMethod)); }