public async Task <UsuarioModel> Put(UsuarioModel usuario)
        {
            context.Entry(usuario).State = EntityState.Modified;
            await context.SaveChangesAsync();

            return(usuario);
        }
Пример #2
0
        public async Task <CategoriaModel> Put(CategoriaModel categoria)
        {
            context.Entry(categoria).State = EntityState.Modified;
            await context.SaveChangesAsync();

            return(categoria);
        }
Пример #3
0
        public async Task <Eventos> Put(Eventos evento)
        {
            using (EasyTalkContext context = new EasyTalkContext()){
                context.Entry(evento).State = EntityState.Modified;
                await context.SaveChangesAsync();

                return(evento);
            }
        }