public async Task <ActionResult <TrialRequest> > AddNewTrialRequest(TrialRequest trialRequest) { _context.TrialRequests.Add(trialRequest); await _context.SaveChangesAsync(); return(CreatedAtAction(nameof(TrialRequestDetailView), new { id = trialRequest.Id }, trialRequest)); }
public void Start(TrialRequest request) { Dispatch(request); }
public TrialResponse Process(TrialRequest request) { return(new TrialResponse().LinkTo(request).WithProcessResult(ProcessResultType.Ok)); }