Exemple #1
0
        public string ModificarGasto(int id_Expense, DateTime fecha, string detalle, string total)
        {
            Gasto modificarProducto = new Gasto(id_Expense, fecha, detalle, total);

            using (ServicioGasto elProducto = new ServicioGasto())
                return(elProducto.ModificarProducto(modificarProducto));
        }
Exemple #2
0
        public string InsertarGasto(DateTime fecha, string detalle, string total)
        {
            Gasto nuevoGasto = new Gasto(fecha, detalle, total);

            using (ServicioGasto elGasto = new ServicioGasto())
                return(elGasto.InsertarGasto(nuevoGasto));
        }
Exemple #3
0
 public DataSet GetexpenseByDate(string Fecha1, string Fecha2)
 {
     using (ServicioGasto elGasto = new ServicioGasto())
         return(elGasto.GetexpenseByDate(Fecha1, Fecha2));
 }
Exemple #4
0
 /// <summary>
 /// Metodo Listar Productos
 /// </summary>
 /// <returns></returns>
 public DataTable ListarGastos()
 {
     using (ServicioGasto elGasto = new ServicioGasto())
         return(elGasto.ListarProductos());
 }