protected override async Task HandleCore(UnregisterActivity message) { await dataAccess.DeleteActivityAndTaskSignupsAsync(message.ActivitySignupId).ConfigureAwait(false); //Notify admins & volunteer await mediator.PublishAsync(new UserUnenrolls { ActivityId = message.ActivitySignupId, UserId = message.UserId }).ConfigureAwait(false); }
protected override async Task HandleCore(DeleteActivityAndTaskSignupsCommandAsync message) { await dataAccess.DeleteActivityAndTaskSignupsAsync(message.ActivitySignupId); }