public ActionResult List()
        {
            var viewManager = new ReferenceViewManager(CoreData.UserManager.GetCurrentUser());
            var model       = viewManager.CreateReferenceListViewModel();

            return(View(model));
        }
        public JsonResult GetReferenceData()
        {
            var viewManager = new ReferenceViewManager(CoreData.UserManager.GetCurrentUser());
            var model       = viewManager.CreateReferenceListViewModel();

            //var obj = new {iTotalRecords = 2, iTotalDisplayRecords = 2, sEcho = 2, aaData = model.References};
            var obj = new { aaData = model.References };

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }