コード例 #1
0
        public void Delete(Milestone milestone)
        {
            if (milestone == null)
            {
                throw new ArgumentNullException("milestone");
            }

            ProjectSecurity.DemandEdit(milestone);
            milestoneDao.Delete(milestone.ID);
        }
コード例 #2
0
        public void Delete(Milestone milestone)
        {
            if (milestone == null)
            {
                throw new ArgumentNullException("milestone");
            }

            ProjectSecurity.DemandDelete(milestone);
            _milestoneDao.Delete(milestone.ID);

            var users = new HashSet <Guid> {
                milestone.Project.Responsible, milestone.Responsible
            };

            NotifyClient.Instance.SendAboutMilestoneDeleting(users, milestone);
        }