Esempio n. 1
0
        /*** STATIC METHODS ***/

        public static bool DeleteCategory(int categoryId)
        {
            if (categoryId <= DefaultValues.GetCategoryIdMinValue())
            {
                throw (new ArgumentOutOfRangeException("categoryId"));
            }

            DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer();

            return(DBLayer.DeleteCategory(categoryId));
        }
Esempio n. 2
0
 public Category(int projectId, int parentCategoryId, string name)
     : this(DefaultValues.GetCategoryIdMinValue(), projectId, parentCategoryId, name)
 {
 }
Esempio n. 3
0
 public Category(string name, int categoryId)
     : this(categoryId, DefaultValues.GetProjectIdMinValue(), DefaultValues.GetCategoryIdMinValue(), name)
 {
 }