public IActionResult GetApplication(int id) { var application = _applyService.GetApplication(id); if (application == null) { return(NotFound()); } return(new ObjectResult(application)); }
public IActionResult GetStudyForApplication(int id) { var application = _applyService.GetApplication(id); if (application == null) { return(NotFound("Nem sikerült megtalálni az igénylést!")); } var studies = _studyService.GetStudiesForApplication(id); return(Ok(studies)); }