public async Task <string> StorePaste(PasteDto dto) { var entity = new PasteEntity(dto); await this.tableService.InsertAsync(entity); return(entity.RowKey); }
public async Task <IActionResult> Post([FromBody] PasteDto dto) { var result = await this.pastService.StorePaste(dto); return(Ok(result)); }