public async Task <ActionResult> Post(SendStory command)
        {
            await _storyService.AddAsync(command);

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

            return(CreatedAtAction(nameof(Get), new { storyId = request.Id }, null));
        }