Ejemplo 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();
        }
Ejemplo 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();
        }