public ActionResult <IList <CaseFile> > RetrieveByDocketId(int docketId) { var result = _repository.FindByDocketId(docketId); if (result == null) { return(NotFound()); } return(new List <CaseFile> { result }); }