Skip to content

Instantly share code, notes, and snippets.

@DannyRusnok
Last active December 1, 2019 18:33
Show Gist options
  • Save DannyRusnok/ab08728eede9401822e18800b662236f to your computer and use it in GitHub Desktop.
Save DannyRusnok/ab08728eede9401822e18800b662236f to your computer and use it in GitHub Desktop.
public class OrderVatCalculator{
public Order AddVatIfNotCompany(Order order, bool isCompany)
{
decimal vat = 1.21;
if(!isCompany){
order.Price = order.Price * vat;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment