Ejemplo n.º 1
0
 public IActionResult Post([FromBody] CreateDirectorDto dto, [FromServices] ICreateDirectorCommand command)
 {
     _executor.ExecuteCommand(command, dto);
     return(StatusCode(StatusCodes.Status201Created));
 }
Ejemplo n.º 2
0
 public IActionResult Post([FromBody] DirectorCreateDto dto, [FromServices] ICreateDirectorCommand command)
 {
     _executor.ExecuteCommand(command, dto);
     return(Ok("radi"));
 }