예제 #1
0
        public ActionResult <List <ApiShowGetMovies> > GetMovies()
        {
            List <ApiShowGetMovies> movies = new List <ApiShowGetMovies>();
            var data = _sqlService.GetMoviesForAddShow();

            foreach (var item in data)
            {
                movies.Add(new ApiShowGetMovies
                {
                    Id   = item.Id,
                    Name = item.Name
                });
            }

            return(movies);
        }