public ActionResult List(Models.TeacherJob.List vm)
 {
     return(Code.MvcHelper.Post(null, Url.Action("List", new
     {
         searchText = vm.SearchText
     })));
 }
 public ActionResult List()
 {
     using (var db = new XkSystem.Models.DbContext())
     {
         var vm = new Models.TeacherJob.List();
         var tb = db.Table <Teacher.Entity.tbTeacherJob>();
         if (!string.IsNullOrEmpty(vm.SearchText))
         {
             tb = tb.Where(d => d.TeacherJobName.Contains(vm.SearchText));
         }
         vm.DataList = (from p in tb
                        orderby p.No
                        select p).ToList();
         return(View(vm));
     }
 }