public ActionResult ListCaveFiles(TableRequestModel request, CaveFilesModel model)
 {
     var caveFiles = db.Caves.Find(model.CaveID).MetaFiles;// MetaFiles.Where(p => p.CaveID == model.CaveID);
     return TableResult.From(caveFiles).Build<CaveFileTable>(request,1); //TODO - SOrt out this total rows thing.. that is currently set to 1
 }
        public ActionResult Index(int id)
        {
            if (id == 0)
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
            }

            var caveFilesModel = new CaveFilesModel();
            caveFilesModel.CaveID = id;
            caveFilesModel.CaveFiles = db.Caves.Find(id).MetaFiles.Take(5);
            return View(caveFilesModel);
        }