/// <summary>Post this message.</summary> /// /// <param name="request">The request.</param> /// /// <returns>An object.</returns> 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)); }
/// <summary>Post this message.</summary> /// /// <param name="request">The request.</param> /// /// <returns>An object.</returns> 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); }