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