private void CleanUp(CongregatioServiceClient client, Report report) { var user = report.ReportedBy; var @event = report.ReportedEvent; client.RemoveReport(report); client.RemoveEvent(@event); user = client.FindUserById(user.UserId); client.RemoveUser(user); }
private void CleanUp(CongregatioServiceClient client, Event @event, User attendee) { var user = @event.User; @event.Attendees = new List<User>(); client.UpdateEvent(@event); attendee.AttendedEvents = new List<Event>(); client.UpdateUser(attendee); @event = client.GetEventByIdLong(@event.Id); attendee = client.FindUserById(attendee.UserId); client.RemoveUser(attendee); client.RemoveEvent(@event); user = client.FindUserById(user.UserId); client.RemoveUser(user); }
private void CleanUp(CongregatioServiceClient client, User stalker, Event stalkedEvent) { client.RemoveUser(stalker); client.RemoveEvent(stalkedEvent); client.RemoveUser(stalkedEvent.User); }