/*** STATIC METHODS ***/ public static bool DeleteCategory(int categoryId) { if (categoryId <= DefaultValues.GetCategoryIdMinValue()) { throw (new ArgumentOutOfRangeException("categoryId")); } DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer(); return(DBLayer.DeleteCategory(categoryId)); }
public Category(int projectId, int parentCategoryId, string name) : this(DefaultValues.GetCategoryIdMinValue(), projectId, parentCategoryId, name) { }
public Category(string name, int categoryId) : this(categoryId, DefaultValues.GetProjectIdMinValue(), DefaultValues.GetCategoryIdMinValue(), name) { }