public ActionResult GetSurgerys(int pageIndex, int pageSize, string keyWord) { if (keyWord == "") { return(Content("".ToJson()));; } var service = new SurgeryService(); var pageData = service.GetList(pageIndex, pageSize, keyWord); var count = service.GetCout(keyWord); var result = new LayPadding <ItemEntity>() { result = true, msg = "success", list = pageData, count = count }; return(Content(result.ToJson())); }
public SurgeryController(SurgeryService surgeryService) { this.surgeryService = surgeryService; }