public static object ObtenerIngredientes() { Producto_Ingrediente_BL pi = new Producto_Ingrediente_BL(); return(pi.Obtener_ingedientes());; }
public static object insertar(string nombreProducto, string cantidad, string unidadM, string descripcionP, string costo) { int cantida1 = Convert.ToInt32(cantidad); decimal unidadM1 = Convert.ToDecimal(unidadM); decimal costo1 = Convert.ToDecimal(costo); Producto_Ingrediente_BL bc = new Producto_Ingrediente_BL(); Productos_Ingredientes_E pe = new Productos_Ingredientes_E(); pe.nombres_productos = nombreProducto; pe.cantidad = cantida1; pe.unidad_de_medida = unidadM1; pe.descripcion = descripcionP; pe.costo = costo1; return(bc.Insertar(pe)); }