/// <summary> /// GetUpdatedLoadStatusHistory /// Function to return list of Load status history records /// </summary> /// <param name="session">Session object</param> /// <returns>List of Load status history</returns> public static List <DAL.LoadStatusHistoryRow> GetUpdatedLoadStatusHistory(string customerID, ISession session, String VersionNo = "") { LoadStatusHistoryTableAdapter ta = new LoadStatusHistoryTableAdapter(); ta.CurrentConnection = session; return(ta.GetUpdatedData(customerID).ToList()); }
/// <summary> /// UpdateLoadStatusHistory /// Function to update the Load status history records /// </summary> /// <param name="loadID">Load ID</param> /// <param name="statusID">Status ID</param> /// <param name="session">Session object</param> public static void UpdateLoadStatusHistory(Guid loadID, String statusID, ISession session, String VersionNo = "") { LoadStatusHistoryTableAdapter ta = new LoadStatusHistoryTableAdapter(); ta.CurrentConnection = session; ta.UpdateQuery(loadID, statusID); }