saas_app/src/packages/administrativo/services/GCartorio/GCartorioSaveService.ts

14 lines
511 B
TypeScript

'use server';
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
import { GCartorioSaveData } from '../../data/GCartorio/GCartorioSaveData';
import GCartorioInterface from '../../interfaces/GCartorio/GCartorioInterface';
async function executeGCartorioSaveService(data: GCartorioInterface) {
const response = await GCartorioSaveData(data);
return response;
}
export const GCartorioSaveService = withClientErrorHandler(executeGCartorioSaveService);