Esempio n. 1
0
        public virtual ScaffoldViewData <T> BuildEditViewData()
        {
            var viewData = ScaffoldView.Data <T>();

            AppendLookupLists(viewData);
            return(viewData);
        }
Esempio n. 2
0
        protected override ActionResult RenderIndexView(int?page)
        {
            var items = Repository.GetAll().InOrder().AsPagination(page ?? 1);

            return(View("Index", ScaffoldView.Data <T>().With(items)));
        }