public static List <Class2_GroupData> GetAllGroupInfo() { using (AddressbookDB db = new AddressbookDB()) { return((from g in db.Groups select g).ToList()); } }
public List <Class3_ContactData> GetContacts() { using (AddressbookDB db = new AddressbookDB()) { return((from c in db.Contacts from gcr in db.GCR.Where (p => p.GroupId == Id && p.ContactId == c.Id && c.Deprecated == "0000-00-00 00:00:00") select c).Distinct().ToList()); } }
public static List <Class3_ContactData> GetAllContactInfo() { using (AddressbookDB db = new AddressbookDB()) { return((from c in db.Contacts.Where (x => x.Deprecated == "0000-00-00 00:00:00") select c).ToList()); } }