コード例 #1
0
        protected override bool AcceptModify(BL.BaseManager manager, int id)
        {
            Category category = ((CategoryManager)manager).Get(id);

            UCFormCategory.PopulateModel(category);
            return(((CategoryManager)manager).Edit(category));
        }
コード例 #2
0
        protected override bool AcceptCreate(BL.BaseManager manager)
        {
            Category category = new Category();

            UCFormCategory.PopulateModel(category);
            return(((CategoryManager)manager).Save(category));
        }