예제 #1
0
        public static MilestoneCollection GetMilestoneByProjectId(int milestoneId)
        {
            if (milestoneId <= DefaultValues.GetMilestoneIdMinValue())
            {
                throw (new ArgumentOutOfRangeException("milestoneId"));
            }

            DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer();

            return(DBLayer.GetMilestoneByProjectId(milestoneId));
        }
예제 #2
0
        /*** STATIC METHODS ***/

        public static bool DeleteMilestone(int milestoneId)
        {
            if (milestoneId <= DefaultValues.GetMilestoneIdMinValue())
            {
                throw (new ArgumentOutOfRangeException("milestoneId"));
            }

            DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer();

            return(DBLayer.DeleteMilestone(milestoneId));
        }
예제 #3
0
        /*** CONSTRUCTOR ***/

        public Milestone(int projectId, string name, string imageUrl)
            : this(DefaultValues.GetMilestoneIdMinValue(), projectId, name, imageUrl)
        {
        }