public AllContacts GetAllContacts() { try { AllContacts objContacts = new AllContacts(); Contact_Repository companyRepo = new Contact_Repository(); objContacts.Contacts = AccountConsole.TblToData(companyRepo.GetContacts()); return objContacts; } catch (Exception) { throw; } }
public ConsoleClasses.AllAccount GetAllContact() { try { AllAccount objContacts = new AllAccount(); Contact_Repository companyRepo = new Contact_Repository(); objContacts.Contacts = Contact.TblToData(companyRepo.GetContacts()); return objContacts; } catch (Exception) { throw; } }