Пример #1
0
        public void Cancel()
        {
            IsCanceled = true;

            var notification = Notification.TeamupCanceled(this);

            foreach (var contributor in Collaborations.Select(c => c.Contributor))
                contributor.Notify(notification);

        }
Пример #2
0
        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);         
        }