public void Delete(Milestone milestone) { if (milestone == null) { throw new ArgumentNullException("milestone"); } ProjectSecurity.DemandEdit(milestone); milestoneDao.Delete(milestone.ID); }
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); }