diff --git a/src/repositories/DirectoryRepository.jsx b/src/repositories/DirectoryRepository.jsx index 065859f6..5159ffe9 100644 --- a/src/repositories/DirectoryRepository.jsx +++ b/src/repositories/DirectoryRepository.jsx @@ -3,17 +3,7 @@ import {api} from "../utils/axiosClient"; export const DirectoryRepository = { GetOrganizations:()=>api.get('/api/directory/organization'), - GetContacts: (isActive, projectId) => { - const params = new URLSearchParams(); - params.append("active", isActive); - - if (projectId) { - params.append("projectId", projectId); - } - - return api.get(`/api/Directory?${params.toString()}`); -} -, + CreateContact: ( data ) => api.post( '/api/directory', data ), UpdateContact: ( id, data ) => api.put( `/api/directory/${ id }`, data ), DeleteContact: ( id,isActive) => api.delete( `/api/directory/${ id }/?active=${isActive}` ),