public object Post(MoviesZip request)
        {
            var response = new MoviesZipResponse {
                Movies = request.Genre.IsNullOrEmpty()
                                        ? DbFactory.Run(db => db.Select <Movie>())
                                        : DbFactory.Run(db => db.Select <Movie>("Genres LIKE {0}", "%" + request.Genre + "%"))
            };

            return(RequestContext.ToOptimizedResult(response));
        }
        public object Post(MoviesZip request)
        {
            using (var db = DbFactory.Open())
            {
                var response = new MoviesZipResponse
                {
                    Movies = request.Genre.IsNullOrEmpty()
                        ? db.Select <Movie>()
                        : db.Select <Movie>("Genres LIKE {0}", "%" + request.Genre + "%")
                };

                return(Request.ToOptimizedResult(response));
            }
        }
        public void Can_call_MoviesZip_WebService()
        {
            var client = new JsonServiceClient(ListeningOn);
            var request = new MoviesZip();
            var response = client.Send<MoviesZipResponse>(request);

            Assert.That(response.Movies.Count, Is.GreaterThan(0));
        }
 public object Get(MoviesZip request)
 {
     return(Post(request));
 }
		public object Post(MoviesZip request)
		{
		    using (var db = DbFactory.Open())
		    {
                var response = new MoviesZipResponse
                {
                    Movies = request.Genre.IsNullOrEmpty()
                        ? db.Select<Movie>()
                        : db.Select<Movie>("Genres LIKE {0}", "%" + request.Genre + "%")
                };

                return RequestContext.ToOptimizedResult(response);
            }
		}
		public object Get(MoviesZip request)
		{
			return Post(request);
		}
		public object Post(MoviesZip request)
		{
			var response = new MoviesZipResponse {
				Movies = request.Genre.IsNullOrEmpty()
					? DbFactory.Run(db => db.Select<Movie>())
					: DbFactory.Run(db => db.Select<Movie>("Genres LIKE {0}", "%" + request.Genre + "%"))
			};

			return RequestContext.ToOptimizedResult(response);
		}