protected override bool AcceptModify(BL.BaseManager manager, int id) { Category category = ((CategoryManager)manager).Get(id); UCFormCategory.PopulateModel(category); return(((CategoryManager)manager).Edit(category)); }
protected override bool AcceptCreate(BL.BaseManager manager) { Category category = new Category(); UCFormCategory.PopulateModel(category); return(((CategoryManager)manager).Save(category)); }