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); }
protected Guid CreateEntity(IEntityCreateRequest request, string type, bool isProtected) { return(CreateEntity(request, type, "", isProtected)); }
protected Guid CreateEntity(IEntityCreateRequest request, string type, string label) { return(CreateEntity(request, type, label, false)); }
protected Guid CreateEntity(IEntityCreateRequest request, string type) { return(CreateEntity(request, type, "", false)); }
protected async Task <Guid> CreateEntityAsync(IEntityCreateRequest request, string type) { return(await CreateEntityAsyc(request, type, "", false)); }