public void Cancel() { IsCanceled = true; var notification = Notification.TeamupCanceled(this); foreach (var contributor in Collaborations.Select(c => c.Contributor)) contributor.Notify(notification); }
public void Modify(TeamupFormViewModel viewModel) { var notification = Notification.TeamupModified(this, DateTime, Address); Address = viewModel.Address; DateTime = viewModel.GetDateTime(); Description = viewModel.Description; DevelopmentLanguageId = viewModel.DevelopmentLanguage; DevelopmentTypeId = viewModel.DevelopmentType; foreach (var contributor in Collaborations.Select(c => c.Contributor)) contributor.Notify(notification); }