コード例 #1
0
        public RemovedWorkRequest RemoveWorkRequest(RemovedWorkRequest removedWorkRequest)
        {
            var result = new WorkRequestsRepository().RemoveWorkRequest(removedWorkRequest);

            // Push notification
            pushNotificationsRepository.NotifyAsync(OperationContext.Current, subscriber => subscriber.WorkRequestWasRemovedNotification(result.RemovedWorkRequestId));

            return(result);
        }
コード例 #2
0
        public WorkRequest UpdateWorkRequest(WorkRequest workRequest)
        {
            var result = new WorkRequestsRepository().UpdateWorkRequest(workRequest);

            // Push notification
            pushNotificationsRepository.NotifyAsync(OperationContext.Current, subscriber => subscriber.WorkRequestWasUpdatedNotification(result.WorkRequestId));

            return(result);
        }
コード例 #3
0
 public WorkRequestsController(WorkRequestsRepository WorkRequestsRepository)
 {
     Repository = WorkRequestsRepository;
 }