Beispiel #1
0
        public ActionResult Edit(System.Guid Id)
        {
            RoleObject objRo = new RoleObject();

            objRo = new RoleBCL().GetByRoleId(Id);
            //objPe.FeaJoin = new FeaIdBCL().GetByFeaId(objPe.FeaId);
            List <RoleObject> LisRo = new RoleBCL().GetAll();

            /*FeaIdObject objFeat = LisFeat.Single(x => x.FeaId.Equals(0));
             * LisFeat.Remove(objFeat);*/
            ViewBag.ListRole = LisRo;

            return(View(objRo));
        }
        Ordernumber GetOderNumberRole(Guid?RoldID)
        {
            var objrole = new RoleBCL().GetByRoleId((Guid)RoldID);

            switch (objrole.RName)
            {
            case "SuperAdmin":
                return(Ordernumber.SuperAmin);

            case "Admin":
                return(Ordernumber.Admin);

            case "TuVanVien":
                return(Ordernumber.Moderator);

            default:
                return(Ordernumber.Member);
            }
        }
Beispiel #3
0
        Ordernumber GetOderNumberRole(byte RoldID)
        {
            var objrole = new RoleBCL().GetById(RoldID);

            switch (objrole.RoleName)
            {
            case "SuperAmin":
                return(Ordernumber.SuperAmin);

            case "Admin":
                return(Ordernumber.Admin);

            case "Moderator":
                return(Ordernumber.Moderator);

            default:
                return(Ordernumber.Member);
            }
        }
        Ordernumber GetOderNumber(Guid AccountID)
        {
            AccountObject objAccout = new AccountBCL().GetByUserId(AccountID);
            var           objrole   = new RoleBCL().GetByRoleId((Guid)objAccout.RoleId);

            switch (objrole.RName)
            {
            case "SuperAdmin":
                return(Ordernumber.SuperAmin);

            case "Admin":
                return(Ordernumber.Admin);

            case "TuVanVien":
                return(Ordernumber.Moderator);

            default:
                return(Ordernumber.Member);
            }
        }
Beispiel #5
0
        Ordernumber GetOderNumber(Guid AccountID)
        {
            AccountObject objAccout = new AccountBCL().GetByID(AccountID);
            var           objrole   = new RoleBCL().GetById(objAccout.RoleID);

            switch (objrole.RoleName)
            {
            case "SuperAmin":
                return(Ordernumber.SuperAmin);

            case "Admin":
                return(Ordernumber.Admin);

            case "Moderator":
                return(Ordernumber.Moderator);

            default:
                return(Ordernumber.Member);
            }
        }