public RemovedWorkRequest RemoveWorkRequest(RemovedWorkRequest removedWorkRequest) { var result = new WorkRequestsRepository().RemoveWorkRequest(removedWorkRequest); // Push notification pushNotificationsRepository.NotifyAsync(OperationContext.Current, subscriber => subscriber.WorkRequestWasRemovedNotification(result.RemovedWorkRequestId)); return(result); }
public WorkRequest UpdateWorkRequest(WorkRequest workRequest) { var result = new WorkRequestsRepository().UpdateWorkRequest(workRequest); // Push notification pushNotificationsRepository.NotifyAsync(OperationContext.Current, subscriber => subscriber.WorkRequestWasUpdatedNotification(result.WorkRequestId)); return(result); }
public WorkRequestsController(WorkRequestsRepository WorkRequestsRepository) { Repository = WorkRequestsRepository; }