public Movimiento GuardarMovimiento(Movimiento movimiento)
 {
     try
     {
         return(MovimientoDAO.NuevoMovimiento(movimiento));
     }
     catch (Exception ex)
     {
         Log(ex);
         throw;
     }
 }
 public string[] GetNombresInstituciones()
 {
     try
     {
         return(MovimientoDAO.GetNombresInstituciones().ToArray());
     }
     catch (Exception ex)
     {
         Log(ex);
         throw;
     }
 }
 public int GetIdMovimiento()
 {
     try
     {
         return(MovimientoDAO.GetLatestId());
     }
     catch (Exception ex)
     {
         Log(ex);
         throw;
     }
 }
        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;
            }
        }