public ActionResult Delete(Guid studyId) { if (studyId == null || studyId == Guid.Empty) { return(BadRequest()); } return(_studyService.DeleteStudy(studyId)); }
public IActionResult DeleteStudy(int id) { var study = _studyService.GetStudy(id); if (study == null) { return(NotFound()); } _studyService.DeleteStudy(id); return(Ok(id)); }