Exemplo n.º 1
0
        public async Task <string> StorePaste(PasteDto dto)
        {
            var entity = new PasteEntity(dto);

            await this.tableService.InsertAsync(entity);

            return(entity.RowKey);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Post([FromBody] PasteDto dto)
        {
            var result = await this.pastService.StorePaste(dto);

            return(Ok(result));
        }