Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }