Exemplo n.º 1
0
        protected override bool AcceptModify(BL.BaseManager manager, int id)
        {
            Map map = ((MapManager)manager).Get(id);

            UCFormMap.PopulateModel(map);
            return(((MapManager)manager).Edit(map));
        }
Exemplo n.º 2
0
        protected override bool AcceptCreate(BL.BaseManager manager)
        {
            Map map = new Map();

            UCFormMap.PopulateModel(map);
            return(((MapManager)manager).Save(map));
        }