public static string Insertar(int idProducto, string tipo, decimal porcentaje, string estado) { DDescuento Obj = new DDescuento(); Obj.IdProducto = idProducto; Obj.Tipo = tipo; Obj.Porcentaje = porcentaje; Obj.Estado = estado; return(Obj.Insertar(Obj)); }