示例#1
0
        protected override bool CanCreateNew(ChildCreateGetModel model)
        {
            throw new Lpp.Utilities.CodeToBeUpdatedException();

            //return Security.HasPrivilege( Sec.Target( Prnt( model ) ), Auth.CurrentUser, CreatePrivilege );
        }
示例#2
0
 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;
        }