Ejemplo n.º 1
0
        public ActionResult Delete(Guid studyId)
        {
            if (studyId == null || studyId == Guid.Empty)
            {
                return(BadRequest());
            }

            return(_studyService.DeleteStudy(studyId));
        }
Ejemplo n.º 2
0
        public IActionResult DeleteStudy(int id)
        {
            var study = _studyService.GetStudy(id);

            if (study == null)
            {
                return(NotFound());
            }
            _studyService.DeleteStudy(id);

            return(Ok(id));
        }