protected override bool AcceptModify(BL.BaseManager manager, int id) { News news = ((NewsManager)manager).Get(id); UCFormNews.PopulateModel(news); return(((NewsManager)manager).Edit(news)); }
protected override bool AcceptCreate(BL.BaseManager manager) { News news = new News(); UCFormNews.PopulateModel(news); return(((NewsManager)manager).Save(news)); }