Exemplo n.º 1
0
        public List <RolePrivilageModel> GetRolePrivilageBaseonUser(int AppuserId, int Product)
        {
            var cc = (from aa in ent.Core_GetPrivilageOfUser(AppuserId, "ADMIN").OrderBy(pp => pp.ActionTypeId)
                      select new RolePrivilageModel
            {
                ActionTypeName = aa.ActionTypeName,
                ControllerLabel = aa.ControllerLabel,
                ControllerId = aa.ControlerId,
                PrivilegeId = aa.PrivilegeId,
                PrivilageIdChecked = Convert.ToBoolean(aa.Exist),
                ControllerName = aa.ControllerName,
                isExist = aa.Exist
            }).ToList();

            return(cc.ToList());
        }