public TINH_TP_UpdResult TINH_TP_Upd(XElement xmlData) { try { using (var db = new OOAD_EDUManagementDataContext()) { return db.TINH_TP_Upd(xmlData).FirstOrDefault(); } } catch (Exception e) { return new TINH_TP_UpdResult() { errorDesc = e.Message, result = "-1" }; } }