public void InsertWorkTask(WorkTask workTask) { WorkTaskTable workTaskDB = new WorkTaskTable(connection); if (workTask.Comments != null) { InsertCommits(workTask.Comments.ToArray()); } if (workTask.Files != null) { InsertAdditionFiles(workTask.Files.ToArray()); } workTaskDB.Insert(workTask); }
public void UpdateWorkTask(WorkTask workTask) { WorkTaskTable workTaskDB = new WorkTaskTable(connection); workTaskDB.Update(workTask); }