public void UsingNullConditionals(InvoiceListDataViewModel currentInvoice)
        {
            var someProxy = new SomeProxy();
            var response  = someProxy.SomeMethod();

            if (response?.Result?.Success == SuccessCode.Success)
            {
                Console.WriteLine("Yay!");
            }
        }
        public void UsingNullConditionals(InvoiceListDataViewModel currentInvoice)
        {
            var someProxy = new SomeProxy();
            var response = someProxy.SomeMethod();

            if (response?.Result?.Success == SuccessCode.Success)
            {
                Console.WriteLine("Yay!");
            }

        }
        public void OldNullChecking(InvoiceListDataViewModel currentInvoice)
        {
            var someProxy = new SomeProxy();
            var response  = someProxy.SomeMethod();

            if (response != null &&
                response.Result != null &&
                response.Result.Success == SuccessCode.Success)
            {
                Console.WriteLine("Yay!");
            }
        }
        public void OldNullChecking(InvoiceListDataViewModel currentInvoice)
        {
            var someProxy = new SomeProxy();
            var response = someProxy.SomeMethod();

            if (response != null 
                && response.Result != null 
                && response.Result.Success == SuccessCode.Success)
            {
                Console.WriteLine("Yay!");
            }
        }