ZSController.cs 1001 B

123456789101112131415161718192021222324252627282930313233343536
  1. using Business.ZS;
  2. using M55128_rec.Business.ZS;
  3. using M55128_rec.Models.ViewModels.TrendChartModel;
  4. using Models.Entity.LottomatBaseDB;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Web;
  9. using System.Web.Mvc;
  10. namespace M55128_rec.Controllers
  11. {
  12. [RoutePrefix("zs")]
  13. public class ZSController : Controller
  14. {
  15. // GET: ZS
  16. [Route("index.html")]
  17. public ActionResult Index()
  18. {
  19. List<TrendChart_Preview> model = ZSapiBLL.GetTrendChartNewsList("QGC");
  20. return View(model);
  21. }
  22. public ActionResult ZSList(string t) {
  23. List<TempTrendChartPreviewItem> model = ZSapiBLL.GetTrendChartNewsList(t)[0].TrendChartPreviewItems;
  24. return PartialView(model);
  25. }
  26. [Route("{c?}/{id?}.html")]
  27. public ActionResult ZSDetail(string id)
  28. {
  29. Base_TrendChart model= ZSBLL.GetTrendChartById(id);
  30. return View(model);
  31. }
  32. }
  33. }