Esempio n. 1
0
 public List <MovieDTO> GetMovieByDay(DateTime date)
 {
     try
     {
         MovieDAO movieDAO = new MovieDAO();
         return(movieDAO.GetMovieByDay(date));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            MovieDAO        dao    = new MovieDAO();
            DateTime        date   = DateTime.Now.AddDays(-1);
            List <MovieDTO> movies = dao.GetMovieByDay(date);

            foreach (MovieDTO mv in movies)
            {
                Console.WriteLine($"{mv.MovieName}");
            }
            Console.ReadLine();
        }