Example #1
0
        public IEnumerable <string> Get()
        {
            var entity = new Entities.Movie();

            entity.ReleaseDate = DateTime.Now;
            var dto     = _mapper.Map <Dto.Movie>(entity);
            var service = _movieManagerService;

            return(new string[] { "value1", "value2" });
        }
Example #2
0
        public List <Dto.Movie> Get()
        {
            var entity = new Entities.Movie();

            entity.ReleaseDate = DateTime.Now;
            var dto     = _mapper.Map <Dto.Movie>(entity);
            var service = _movieManagerService;

            return(service.GetList(new Dto.MovieSearchCriteria(), 1, 10));
        }