Example #1
0
        protected override bool AcceptModify(BL.BaseManager manager, int id)
        {
            News news = ((NewsManager)manager).Get(id);

            UCFormNews.PopulateModel(news);
            return(((NewsManager)manager).Edit(news));
        }
Example #2
0
        protected override bool AcceptCreate(BL.BaseManager manager)
        {
            News news = new News();

            UCFormNews.PopulateModel(news);
            return(((NewsManager)manager).Save(news));
        }