import { api } from "../utils/axiosClient";

export const ServiceProjectRepository = {
  CreateServiceProject: (data) => api.post("/api/ServiceProject/create", data),
  GetServiceProjects: (pageSize,pageNumber) => api.get(`/api/ServiceProject/list?pageSize=${pageSize}&pageNumber=${pageNumber}`),
  GetServiceProject: (id) => api.get(`/api/ServiceProject/details/${id}`),
  UpdateServiceProject: (id, data) =>
    api.put(`/api/ServiceProject/edit/${id}`, data),
  DeleteServiceProject: (id,isActive=false) => api.delete(`/api/ServiceProject/delete/${id}?isActive=${isActive}`,),
};
