protected override bool CanCreateNew(ChildCreateGetModel model) { throw new Lpp.Utilities.CodeToBeUpdatedException(); //return Security.HasPrivilege( Sec.Target( Prnt( model ) ), Auth.CurrentUser, CreatePrivilege ); }
protected virtual TParent LoadParent(ChildCreateGetModel model) { return(Equals(model.ParentID, Guid.Empty) ? null : DataContext.Set <TParent>().Find(model.ParentID)); }
protected override Organization LoadParent(ChildCreateGetModel model) { throw new Lpp.Utilities.CodeToBeUpdatedException(); //return base.Prnt( model ) ?? Auth.CurrentUser.Organization; }