コード例 #1
0
        public MovieListItem[] SerchMoviesByTerm(string term)
        {
            var parameters = new[]
            {
                new SqlParameter("@Term", term)
            };

            return(DataBaseUtil.Execute("GetFullMovieByTerm", parameters, _movieListItemMappingFunc).ToArray());
        }
コード例 #2
0
        protected override PotentialRealProfitReportModel GetDataModel()
        {
            var parameters = new[]
            {
                new SqlParameter("@DateFrom", (DateTime)Parameters["DateFrom"]),
                new SqlParameter("@DateTo", (DateTime)Parameters["DateTo"])
            };

            var reportRows = DataBaseUtil.Execute <PotentialRealProfitReportRow>("PotentialRealProfit", parameters);

            return(new PotentialRealProfitReportModel
            {
                Rows = reportRows
            });
        }
コード例 #3
0
        protected override UnprofitableMoviesReportModel GetDataModel()
        {
            var parametr = new[]
            {
                new SqlParameter("@DateFrom", (DateTime)Parameters["DateFrom"]),
                new SqlParameter("@DateTo", (DateTime)Parameters["DateTo"]),
                new SqlParameter("@Threshold", (float)Parameters["Threshold"])
            };

            var reportRows = DataBaseUtil.Execute <UnprofitableMoviesReportRow>("UnprofitableMovies", parametr);

            return(new UnprofitableMoviesReportModel
            {
                Rows = reportRows
            });
        }