Beispiel #1
0
 public void New2()
 {
     PropertyBag["accounttype"] = typeof(Account);
     PropertyBag.Add("licenses", ProductLicense.FindAll());
     PropertyBag.Add("permissions", AccountPermission.FindAll());
     PropertyBag.Add("users", User.FindAll());
 }
Beispiel #2
0
        public void Edit2(int id)
        {
            if (!Flash.Contains("account"))
            {
                PropertyBag["account"] = ActiveRecordMediator <Account> .FindByPrimaryKey(id);
            }

            PropertyBag.Add("licenses", ProductLicense.FindAll());
            PropertyBag.Add("permissions", AccountPermission.FindAll());
            PropertyBag.Add("users", User.FindAll());
        }