Beispiel #1
0
 public List <PermModel> GetPermission(string accountId, string controller)
 {
     using (AppDBContainer db = new AppDBContainer())
     {
         List <PermModel> rights = (from r in db.P_Sys_GetRightOperate(accountId, controller)
                                    select new PermModel
         {
             KeyCode = r.KeyCode,
             IsValid = r.IsValid
         }).ToList();
         return(rights);
     }
 }