ecengel
9/26/2018 - 2:43 AM

Multi level inheritance methods

public class ContactService
    {

        public List<Contact> ContactsWithEmailAddresses()
        {
            return Contacts(true, false);
        }

        public List<Contact> ContactsWithEmailAddressesAndTelephoneNumber()
        {
            return Contacts(true, true);
        }

        public List<Contact> Contacts(bool includeEmailAddress, bool includeTelephoneNumbers)
        {
            //Some logic that Eagerloads email addresses and telephone numbers based on condition and returns contacts.
        }


    }