Exemplo n.º 1
0
        public async Task <IActionResult> Post([FromBody] SuperheroCreateDTO superhero)
        {
            var id = await _repository.Create(superhero);

            return(CreatedAtAction(nameof(Get), new { id }, default));
        }