Пример #1
0
        protected async Task <Guid> CreateEntityAsyc(IEntityCreateRequest request, string type, string label, bool isProtected)
        {
            AssertValidEntityType(type);
            await AssertEntityDoesntExistAsync(request.Id);

            Guid revision = Guid.NewGuid();
            await entityDataManager.CreateEntityAsync(type, request.Id, revision, request.Author, label, request.Created, isProtected, Utility.GetFieldValues(request, request.GetType()));

            return(revision);
        }
Пример #2
0
 protected Guid CreateEntity(IEntityCreateRequest request, string type, bool isProtected)
 {
     return(CreateEntity(request, type, "", isProtected));
 }
Пример #3
0
 protected Guid CreateEntity(IEntityCreateRequest request, string type, string label)
 {
     return(CreateEntity(request, type, label, false));
 }
Пример #4
0
 protected Guid CreateEntity(IEntityCreateRequest request, string type)
 {
     return(CreateEntity(request, type, "", false));
 }
Пример #5
0
 protected async Task <Guid> CreateEntityAsync(IEntityCreateRequest request, string type)
 {
     return(await CreateEntityAsyc(request, type, "", false));
 }