Exemplo n.º 1
0
        public async Task <IActionResult> CreateStatus([FromBody] CreateStatusDto createStatusDto)
        {
            var command = mapper.Map <CreateStatusCommand>(createStatusDto);
            await statusesService.CreateStatusAsync(command);

            return(Created($"/api/statuses/{command.Id}", new EntityCreatedDto {
                Id = command.Id
            }));
        }