public void DeleteWorkerRequest(long workerRequestId) { var rows = WorkerRequestsTable.Select(string.Format("WorkerRequestID = {0}", workerRequestId)); if (!rows.Any()) { return; } var workerRequestRow = rows.First(); workerRequestRow.Delete(); UpdateWorkerRequests(); }
public void SetConfirmationInfo(long workerRequestId, string mainWorkerNotes, bool isConfirmed, DateTime confirmationDate) { var rows = WorkerRequestsTable.Select(string.Format("WorkerRequestID = {0}", workerRequestId)); if (!rows.Any()) { return; } var workerRequestRow = rows.First(); workerRequestRow["MainWorkerNotes"] = mainWorkerNotes; workerRequestRow["IsConfirmed"] = isConfirmed; workerRequestRow["ConfirmationDate"] = confirmationDate; UpdateWorkerRequests(); }