public IngresoDto UpdateIngreso(int id, IngresoDto ingreso) { repository.UpdateIngreso(new Ingreso() { Id = ingreso.Id, Fecha = DateTime.ParseExact(ingreso.Fecha, "dd/MM/yyyy", CultureInfo.InvariantCulture), FuenteId = ingreso.Fuente.Id, Monto = ingreso.Monto, Descripcion = ingreso.Descripcion }); return(ingreso); }