private double CalcularPrecioDescuento(string nombre) { double total; double costoTotal; if (Validaciones.CheckDescuento(nombre)) { costoTotal = ItemProducto.TotalCostoProductos(listaCarrito); total = costoTotal - (costoTotal * 0.13); } else { total = ItemProducto.TotalCostoProductos(listaCarrito); } return(total); }