public TL_SYS_ROLE_InsResult TL_SYS_ROLE_Ins(TL_SYS_ROLE_SearchResult data, System.Xml.Linq.XElement xmlData) { try { using (var db = new OOAD_EDUManagementDataContext()) { return db.TL_SYS_ROLE_Ins(data.roleID, data.roleDesc, xmlData).FirstOrDefault(); } } catch (Exception e) { return new TL_SYS_ROLE_InsResult() { ROLEID="" ,RESULT = "-1", ERRORDESC = e.Message }; } }