public string ApproveDoctor(string callType, string xmlMessage) { string result = "", id = ""; string logID = Guid.NewGuid().ToString(); try { FileLogger.WriteLog(logID + "|Start:" + xmlMessage, 1, "", callType); if (Helper.CheckAuthCode(callType, xmlMessage)) { Doctor h = new Doctor(); id = h.Approve(xmlMessage); if (id != "-1") { result = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<" + callType + ">" + "<Result>True</Result>" + "<ID>" + id + "</ID>" + "<Description></Description></" + callType + ">"; } else { result = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<" + callType + ">" + "<Result>False</Result>" + "<Description></Description></" + callType + ">"; } } } catch (Exception err) { result = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<" + callType + ">" + "<Result>False</Result>" + "<Description>" + err.Message + "</Description></" + callType + ">"; } FileLogger.WriteLog(logID + "|End:" + result, 1, "", callType); return(result); }