Ejemplo n.º 1
0
        public void EdiFront(frontendPro front)
        {
            frontend registro = ctx.frontend.Single(r => r.id == front.id);

            registro.id          = front.id;
            registro.descripcion = front.descripcion;
            registro.porcentaje  = front.porcentaje;
            ctx.SaveChanges();
        }
Ejemplo n.º 2
0
        public void agregarFrontEnd(frontendPro front)
        {
            frontend registro = new frontend();

            registro.descripcion = front.descripcion;
            registro.id          = front.id;
            registro.porcentaje  = front.porcentaje;
            ctx.frontend.Add(registro);
            ctx.SaveChanges();
        }