Ejemplo n.º 1
0
        public ActionResult LocalReports()
        {
            // Session Provider
            var model = new LocalReportsModel()
            {
                Products       = LocalData.GetProducts(),
                Cities         = LocalData.GetPocoCities(),
                FilteredCities = LocalData.GetDataTable("select * from dbo.Cities where Id < 3")
            };

            //// SQL Provider
            //var model = new SqlLocalReportsModel()
            //{
            //    Products = "select * from dbo.Products",
            //    Cities = "select * from dbo.Cities",
            //    FilteredCities = "select * from dbo.Cities where Id < 3"
            //};

            return(View(model));
        }