Пример #1
0
        public MovieDTO GetById(int id)
        {
            var      movie = movieRepository.Get(x => x.Id == id);
            MovieDTO model = new MovieDTO();

            model.InjectFrom(movie);
            return(model);
        }
Пример #2
0
        public MovieDTO GetByName(string name)
        {
            var      movie = movieRepository.Get(x => x.Name == name);
            MovieDTO model = new MovieDTO();

            model.InjectFrom(movie);
            return(model);
        }