public IActionResult CreateStudy([FromBody] CreateStudyModel study) { if (study == null) { return(BadRequest()); } _studyService.CreateStudy(study); return(Ok(study)); }
public Task <ActionResult <Study> > Handle(CreateStudyCommand message, CancellationToken cancellationToken) { return(_studyService.CreateStudy(message.Study)); }