示例#1
0
        public async Task <Localizacao> Alterar(Localizacao localizacao)
        {
            using (BDGUFOSContext _contexto = new BDGUFOSContext()) {
                _contexto.Entry(localizacao).State = EntityState.Modified;
                await _contexto.SaveChangesAsync();

                return(localizacao);
            }
        }
        public async Task <Usuario> Alterar(Usuario usuario)
        {
            using (BDGUFOSContext _contexto = new BDGUFOSContext()) {
                _contexto.Entry(usuario).State = EntityState.Modified;
                await _contexto.SaveChangesAsync();

                return(usuario);
            }
        }
        public async Task <Presenca> Alterar(Presenca presenca)
        {
            using (BDGUFOSContext _contexto = new BDGUFOSContext()) {
                _contexto.Entry(presenca).State = EntityState.Modified;
                await _contexto.SaveChangesAsync();

                return(presenca);
            }
        }
示例#4
0
        public async Task <Evento> Alterar(Evento evento)
        {
            using (BDGUFOSContext _context = new BDGUFOSContext()) {
                _context.Entry(evento).State = EntityState.Modified;
                await _context.SaveChangesAsync();

                return(evento);
            }
        }
示例#5
0
        public async Task <Categoria> Alterar(Categoria categoria)
        {
            using (BDGUFOSContext _contexto = new BDGUFOSContext()) {
                _contexto.Entry(categoria).State = EntityState.Modified;

                await _contexto.SaveChangesAsync();

                return(categoria);
            }
        }