Ejemplo n.º 1
0
 public Movimiento GuardarMovimiento(Movimiento movimiento)
 {
     try
     {
         return(MovimientoDAO.NuevoMovimiento(movimiento));
     }
     catch (Exception ex)
     {
         Log(ex);
         throw;
     }
 }
Ejemplo n.º 2
0
 public string[] GetNombresInstituciones()
 {
     try
     {
         return(MovimientoDAO.GetNombresInstituciones().ToArray());
     }
     catch (Exception ex)
     {
         Log(ex);
         throw;
     }
 }
Ejemplo n.º 3
0
 public int GetIdMovimiento()
 {
     try
     {
         return(MovimientoDAO.GetLatestId());
     }
     catch (Exception ex)
     {
         Log(ex);
         throw;
     }
 }
Ejemplo n.º 4
0
        public object[] RetrieveEntitiesWhere(object dto, string where)
        {
            try
            {
                switch (dto.GetType().Name)
                {
                case "Movimiento":
                    return(MovimientoDAO.RetrieveEntitiesWhere(dto, where).ToArray());

                case "Imagen":
                    return(ImagenDAO.RetrieveEntitiesWhere(dto, where).ToArray());

                default:
                    return(null);
                }
            }
            catch (Exception ex)
            {
                Log(ex);
                throw;
            }
        }