public List <permModel> GetPermission(string accountid, string controller)
 {
     using (DBContainer db = new DBContainer())
     {
         List <permModel> rights = (from r in db.P_Sys_GetRightOperate(accountid, controller)
                                    select new permModel
         {
             KeyCode = r.KeyCode,
             IsValid = r.IsValid
         }).ToList();
         return(rights);
     }
 }