From d4f0662f578a0137cbcf90868f7a5cc87083a0dc Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Mon, 9 Jun 2025 15:06:04 +0530 Subject: [PATCH] resolved conflict --- src/repositories/DirectoryRepository.jsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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}` ),