Example #1
0
 private static InvoiceDistributionType ConvertInvoiceDistributionType(
     Util.Constant.DistributionType getDistributionType)
 {
     return(getDistributionType == Util.Constant.DistributionType.EMAIL
                ? InvoiceDistributionType.Email
                : InvoiceDistributionType.Post);
 }
Example #2
0
        private static InvoiceDistributionType ConvertInvoiceDistributionType(Util.Constant.DistributionType getDistributionType)
        {
            switch (getDistributionType)
            {
            case DistributionType.POST:
                return(InvoiceDistributionType.Post);

            case DistributionType.EMAIL:
                return(InvoiceDistributionType.Email);

            case DistributionType.EINVOICEB2B:
                return(InvoiceDistributionType.EInvoiceB2B);

            default:
                return(InvoiceDistributionType.Post);
            }
        }