public ActionResult List()
        {
            using (var db = new XkSystem.Models.DbContext())
            {
                var vm = new Models.TeanntProgram.List();
                var tb = from p in db.Table <Admin.Entity.tbTenantProgram>()
                         select p;

                if (string.IsNullOrEmpty(vm.SearchText) == false)
                {
                    tb = tb.Where(d => d.tbProgram.ProgramName.Contains(vm.SearchText));
                }

                vm.TeanntProgramList = (from p in tb
                                        orderby p.No
                                        select new Dto.TeanntProgram.List
                {
                    Id = p.Id,
                    No = p.No,
                    TeanntProgramName = p.tbProgram.ProgramName
                }).ToList();
                return(View(vm));
            }
        }
 public ActionResult List(Models.TeanntProgram.List vm)
 {
     return(Code.MvcHelper.Post(null, Url.Action("List", new { searchText = vm.SearchText })));
 }