Skip to main content

CreateRepository

A new Repository can be created in Document Management using the following codes.

Required Libraries

using System;
using System.Collections.Generic;
using Bimser.CSP.FormControls.Common;
using Bimser.CSP.FormControls.Controls;
using Bimser.CSP.FormControls.Events;
using Bimser.Synergy.Entities.Shared.Business.Objects;
using Bimser.Synergy.ServiceAPI;
using Bimser.Synergy.ServiceAPI.Models.Authentication;
using Bimser.Synergy.ServiceAPI.Models.Form;
using Newtonsoft.Json;
using Bimser.Synergy.Entities.DocumentManagement.Business.DTOs.Requests;

Codes

       ServiceApi.DocumentManagement.CreateRepository(
new CreateRepositoryRequest(
new Dictionary```<```string, string```>```{{"en-US","newRepositoryName"}},
new Dictionary```<```string, string```>```{{"en-US","newRepositoryDescription"}}
)
);