/// <summary> /// Add Remarks in travel request /// </summary> /// <param name="requestid">Request id to add remarks</param> /// <param name="remarks">remarks to be added</param> /// <param name="remarkby">username adding remarks</param> /// <param name="agentid">agent id if remark is added by agent/supplier</param> /// <returns></returns> public Boolean AddRemarks(int requestid, string remarks, int remarkby, int agentid, string RemarkAgentIDs = "") { DataTable dtAgentIDs = new DataTable(); dtAgentIDs.Columns.Add("TAID"); DataRow drID; foreach (string sid in RemarkAgentIDs.Split(',')) { if (sid.Trim() != "") { drID = dtAgentIDs.NewRow(); drID["TAID"] = sid; dtAgentIDs.Rows.Add(drID); } } DAL_TRV_Request TRequest = new DAL_TRV_Request(); try { return(TRequest.Add_Remarks(requestid, remarks, remarkby, agentid, dtAgentIDs)); } catch { throw; } finally { TRequest = null; } }