AnnouncementServicesController.cs 891 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Net.Http;
  6. using EMIS.CommonLogic.SystemServices;
  7. using EMIS.ViewModel.SystemView;
  8. using Bowin.Common.Linq.Entity;
  9. using System.Web.Mvc;
  10. namespace EMIS.Web.ApiControllers.SystemManage
  11. {
  12. public class AnnouncementServicesController : Controller
  13. {
  14. public IAnnouncementServices AnnouncementServices { get; set; }
  15. public ActionResult GetAnnouncementViewInfo(Guid? announcementID)
  16. {
  17. return Json(AnnouncementServices.GetAnnouncementViewInfo(announcementID), JsonRequestBehavior.AllowGet);
  18. }
  19. public ActionResult GetUserAnnouncementView(Guid userID, int pageIndex, int pageSize)
  20. {
  21. return Json(AnnouncementServices.GetUserAnnouncementView(userID, pageIndex, pageSize), JsonRequestBehavior.AllowGet);
  22. }
  23. }
  24. }