public void GetTask(string fileName) { var validateFileName = new VerifierFileAndStatus(fileName); fileName = validateFileName.VerifyFileName(); var xml = new XMLRepository(fileName); // xml.GetTasks(); }
public void UpdateStatus(string id, string status, string fileName) { var validateFileAndStatus = new VerifierFileAndStatus(fileName, status); status = validateFileAndStatus.VerifyStatus(); fileName = validateFileAndStatus.VerifyFileName(); var xml = new XMLRepository(fileName); // xml.UpdateStatus(id, status); }
public void UpdateDate(string id, string date, string fileName) { var validateFileAndStatus = new VerifierFileAndStatus(fileName); fileName = validateFileAndStatus.VerifyFileName(); var validateDateAndDuDate = new VerifierDateAndDueDate(date); var tempdate = validateDateAndDuDate.VerifyTempDate(); var xml = new XMLRepository(fileName); // xml.UpdateDate(id, tempdate); }
public TaskService(string fileName) { this.repository = new XMLRepository(fileName); }