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

export const TenantRepository = {

    getTenanatList:(pageSize, pageNumber, filter,searchString)=>{
         const payloadJsonString = JSON.stringify(filter);
       return api.get(`/api/Tenant/list?pageSize=${pageSize}&pageNumber=${pageNumber}&filter=${payloadJsonString}&searchString=${searchString}`)
    },

    getSubscriptionPlan:(freq)=>api.get(`/api/Tenant/list/subscription-plan?frequency=${freq}`),

    createTenant:(data)=>api.post('/api/Tenant/create',data)
}

