SearchController.cs 799 B

12345678910111213141516171819202122232425262728293031
  1. using System.Web.Mvc;
  2. using PMS.Interface;
  3. using PMS.Interface.Search;
  4. namespace PMS.WebUI.Controllers
  5. {
  6. /// <summary>
  7. /// 创 建 人:王海洋
  8. /// 创建日期:2018-12-10
  9. /// 功能描述:账户管理控制类
  10. /// </summary>
  11. [CheckLogin(false)]
  12. public class SearchController : BaseController
  13. {
  14. ISearch search = InterfaceFactory.CreateBusinessInstance<ISearch>();
  15. // GET: Account
  16. public ActionResult Search()
  17. {
  18. ViewBag.RYXZ = GetCurrentUser().PersonProperty;
  19. return View();
  20. }
  21. [HttpGet]
  22. public ActionResult titlePrecision(string keyword)
  23. {
  24. var json = search.titlePrecision(keyword);
  25. return Content(json, "application/json");
  26. }
  27. }
  28. }