public TaskDetails GetUpdateXML(int OrgLevelRecID) { DataTable dtResult = new DataTable(); TaskDetails lstTaskDetails = new TaskDetails(); try { dtSystemTime = DateTime.Now; lstTaskDetails = CacheUtil.Get<taskdetails>(OrgLevelRecID, "InstanceID"); if (lstTaskDetails == null) { lstTaskDetails = new TaskDetails(); dtResult = FeederClass.GetUpdateXML(OrgLevelRecID); foreach (DataRow reader in dtResult.Rows) { lstTaskDetails.JobType = reader["typeOfJob"].ToString(); lstTaskDetails.JobDetails = reader["jobdetails"].ToString(); } CacheUtil.SetSliding(OrgLevelRecID, lstTaskDetails, 5, "InstanceID"); } } catch (Exception ex) { throw ex; } return lstTaskDetails; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)