public async Task <ActionResult> Post(SendStory command) { await _storyService.AddAsync(command); return(CreatedAtAction(nameof(Get), new { storyId = command.Id }, null)); }
public async Task <ActionResult> Post([FromBody] SendStory request) { await _storyService.AddAsync(request); return(CreatedAtAction(nameof(Get), new { storyId = request.Id }, null)); }