public EntitiesForSelectionModel ParentsForSelectionModel(ListGetModel model) { throw new Lpp.Utilities.CodeToBeUpdatedException(); //var deleted = IsParentDeleted(); //return Security // .AllGrantedObjects( Parents.All.Where( o => !deleted.Invoke(o) ).Expand(), Auth.CurrentUser, CreatePrivilege ) // .Where( o => !o.IsDeleted ) // .ListModel( model, ParentSort ) // .EntitiesForSelection( p => p.Id, p => p.Name, (url,m) => url.Action( (TController c) => c.ParentsForSelection( m ) ) ); }
public ActionResult ListBody(ListGetModel r) { throw new Lpp.Utilities.CodeToBeUpdatedException(); //return View(Models.All.ListModel(r, _sort, DefaultPageSize)); }
public ActionResult ParentsForSelection(ListGetModel model) { return(View <Views.Crud.ForSelectionList>().WithModel(ParentsForSelectionModel(model))); }