예제 #1
0
		public object Get(CachedMovies request)
		{
			var service = base.ResolveService<MoviesService>();

			return base.Request.ToOptimizedResultUsingCache(
				this.Cache, UrnId.Create<Movies>(request.Genre ?? "all"), () => {
					return (MoviesResponse)service.Get(new Movies { Genre = request.Genre });
				});
		}
예제 #2
0
        public object Get(CachedMovies request)
        {
            var service = base.ResolveService <MoviesService>();

            return(base.Request.ToOptimizedResultUsingCache(
                       this.Cache, UrnId.Create <Movies>(request.Genre ?? "all"), () => {
                return (MoviesResponse)service.Get(new Movies {
                    Genre = request.Genre
                });
            }));
        }