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(); }
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(); }