Sample Code/MovieHunter.API/Models/MovieRepository.cs
/// <summary>
/// Retrieves the list of movies from the repository.
/// </summary>
/// <returns></returns>
Retrieves the list of movies from the repository.
Retrieves the list of movies from the repository .
internal List<Movie> Retrieve()
        {
            var filePath = HostingEnvironment.MapPath(@"~/App_Data/movies.json");
            var json = System.IO.File.ReadAllText(filePath);
            var movies = JsonConvert.DeserializeObject<List<Movie>>(json);
            return movies;
        }
internal List < Movie > Retrieve ( ) { var filePath = HostingEnvironment . MapPath ( @"~/App_Data/movies.json" ) ; var json = System . IO . File . ReadAllText ( filePath ) ; var movies = JsonConvert . DeserializeObject < List < Movie > > ( json ) ; return movies ; }
Retrieves the list of movies from the repository.
Retrieves the list of movies from the repository .
None