Beispiel #1
0
        public void Atualizar(int id, SectorModelView sectorModelView)
        {
            var sectorDao = new SectorDao();
            var line      = sectorDao.obeterPorId(id);

            var sectorAt = PreparaSector(sectorModelView, line);

            sectorAt.IdSector = id;
            sectorDao.Atualizar(sectorAt);
        }
Beispiel #2
0
        public Sector ObterPorId(int id)
        {
            var sectorDao = new SectorDao();

            return(sectorDao.obeterPorId(id));
        }