/// <summary> /// Get All Diary Logs by DiaryAppointmentID /// </summary> /// <param name="id">DiaryAppointmentID</param> public void GetAllDiaryLogsbyID(int id) { DiaryLogs = new DiaryLog(); DiaryLogs.GetAllDiaryLogsbyTaskID(id); }
/// <summary> /// Add a Diary Log /// </summary> /// <param name="id">DiaryAppointmentID</param> /// <param name="typeid">DiaryLogTypeID</param> /// <param name="createdon">CreatedDate</param> /// <param name="createdby">CreatedBy</param> /// <param name="comments">Comments</param> public void AddDiaryLog(int id, int typeid, DateTime createdon, int createdby, string comments) { DiaryLogs = new DiaryLog() { DiaryAppointmentID = id, CreatedOn = createdon, CreatedBy = createdby, Comments = comments, DiaryLogTypeID = typeid }; DiaryLogs.AddDiaryLog(); }