Ejemplo n.º 1
0
        public Ingreso UpdateIngreso(Ingreso ingreso)
        {
            context.Entry(ingreso).State = EntityState.Modified;
            context.SaveChanges();

            return(ingreso);
        }
Ejemplo n.º 2
0
        public Fuente UpdateFuente(Fuente fuente)
        {
            context.Entry(fuente).State = System.Data.Entity.EntityState.Modified;
            context.SaveChanges();

            return(fuente);
        }
Ejemplo n.º 3
0
        public Gasto UpdateGasto(Gasto gasto)
        {
            context.Entry(gasto).State = EntityState.Modified;
            context.SaveChanges();

            return(gasto);
        }
Ejemplo n.º 4
0
        public Servicio UpdateServicio(Servicio servicio)
        {
            context.Entry(servicio).State = System.Data.Entity.EntityState.Modified;
            context.SaveChanges();

            return(servicio);
        }
Ejemplo n.º 5
0
 public void Update(TEntity entity)
 {
     _context.Entry(entity).State = EntityState.Modified;
 }