public static MilestoneCollection GetMilestoneByProjectId(int milestoneId) { if (milestoneId <= DefaultValues.GetMilestoneIdMinValue()) { throw (new ArgumentOutOfRangeException("milestoneId")); } DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer(); return(DBLayer.GetMilestoneByProjectId(milestoneId)); }
/*** STATIC METHODS ***/ public static bool DeleteMilestone(int milestoneId) { if (milestoneId <= DefaultValues.GetMilestoneIdMinValue()) { throw (new ArgumentOutOfRangeException("milestoneId")); } DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer(); return(DBLayer.DeleteMilestone(milestoneId)); }
/*** CONSTRUCTOR ***/ public Milestone(int projectId, string name, string imageUrl) : this(DefaultValues.GetMilestoneIdMinValue(), projectId, name, imageUrl) { }