public IQueryable <ContactDetailDTO> GetAllContacts() { using (ContactManagementRepository repo = new ContactManagementRepository()) { return(repo.GetAllContacts()); } }
public SaveChangeEnum UpdateContact(ContactDetailDTO _ContactDetailDTO) { using (ContactManagementRepository repo = new ContactManagementRepository()) { return(repo.UpdateContact(_ContactDetailDTO)); } }
public SaveChangeEnum DeleteContact(int Id) { using (ContactManagementRepository repo = new ContactManagementRepository()) { return(repo.DeleteContact(Id)); } }
public ContactDetailDTO GetContactById(int Id) { using (ContactManagementRepository repo = new ContactManagementRepository()) { return(repo.GetContactById(Id)); } }