public IActionResult Post([FromBody] LocationCreateDto dto, [FromServices] ICreateLocationCommand command) { _executor.ExecuteCommand(command, dto); return(Ok("Uneto")); }
public CreateLocation(ICreateLocationCommand createLocationCommand) { _createLocationCommand = createLocationCommand; }