PrintServicesController.cs 1015 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using EMIS.CommonLogic.TerminatePrinter;
  7. using EMIS.ViewModel;
  8. namespace EMIS.Web.ApiControllers.TerminatePrinter
  9. {
  10. public class PrintServicesController : Controller
  11. {
  12. public IStudentPrintTimesServices StudentPrintTimesServices { get; set; }
  13. public ActionResult GetPrintTimesByUserID(Guid userID)
  14. {
  15. return Json(StudentPrintTimesServices.GetStudentPrintMessageView(userID));
  16. }
  17. public ActionResult Count(Guid userID)
  18. {
  19. try
  20. {
  21. StudentPrintTimesServices.Count(userID);
  22. return base.Json(new ReturnMessage { IsSuccess = true, Message = "修改成功。" });
  23. }
  24. catch (Exception ex)
  25. {
  26. return base.Json(new ReturnMessage { IsSuccess = false, Message = "修改失败,原因:" + ex.Message + "。" });
  27. }
  28. }
  29. }
  30. }