Пример #1
0
 public TL_MENU_InsResult TL_MENU_Ins(TL_MENU_SearchResult data)
 {
     try
     {
         using (var db = new OOAD_EDUManagementDataContext())
         {
             return db.TL_MENU_Ins(data.menuName, data.menuNameEL, data.menuParentID, data.menuLink, data.menuNumber, data.menuIcon,data.menuLevel).FirstOrDefault();
         }
     }
     catch (Exception e)
     {
         return new TL_MENU_InsResult() { MENUID = null, RESULT = "-1", ERRORDESC = e.Message };
     }
 }