public Task Release(string id, [FromBody] ReleaseSubmissionRequest request) { var commandBroker = new CommandBroker <Submission>(); return(commandBroker.IssueCommand( id, request.CommandId, new ReleaseSubmissionCommand())); }
public Task Post([FromBody] CreateSubmissionRequest request) { var commandBroker = new CommandBroker <Submission>(); return(commandBroker.IssueCommand( request.SubmissionId, request.CommandId, new CreateSubmissionCommand { SubmitterName = request.SubmitterName, Number = "1234-5678" })); }