public ActionResult GetFileTypeReferences() { using (var generalService = new GeneralService().BaseRepository <FileTypeReference>()) { var fileMaster = _floKaptureService.FileMasterRepository.Aggregate().Limit(10).ToList(); Console.WriteLine(fileMaster.Count); var aggregate = generalService.Aggregate().ToList(); var listAll = generalService.GetAllListItems(); var extRef = generalService.GetAllItems().ToList(); // observer all of 2 above and this statement return(Ok(new { aggregate, listAll, extRef })); } }