コード例 #1
0
        public int Create(string Name, int?ParentCategoryID, int?Priority)
        {
            int        result = 1;
            CWCategory sr     = CWCategory.CreateCWCategory(1);

            sr.Name             = Name;
            sr.ParentCategoryID = ParentCategoryID;
            sr.Priority         = Priority;
            context.AddToCWCategories(sr);
            return(result);
        }