Beispiel #1
0
        public async Task <ExecutionResult> CreateSvcTemplate(SvcTemplateEntity token)
        {
            var tokens = this.mongoDataProvider.SvcTemplateDb.GetCollection <SvcTemplateEntity>(SvcTemplateCollection);
            await tokens.InsertOneAsync(token);

            return(new ExecutionResult());
        }
Beispiel #2
0
 public async Task <ExecutionResult> Post(SvcTemplateEntity value)
 {
     return(await this.svcTemplateService.CreateSvcTemplate(value));
 }