public ActionResult FamilyList(int id)
        {
            var vm = new Models.StudentFamily.FamilyList();

            vm.StudentId = id;

            using (var db = new XkSystem.Models.DbContext())
            {
                vm.StudentFamilyList = (from p in db.Table <Student.Entity.tbStudentFamily>()
                                        where p.tbStudent.Id == id && p.FamilyName.Contains(vm.SearchText)
                                        select new Dto.StudentFamily.FamilyList()
                {
                    Id = p.Id,
                    FamilyName = p.FamilyName,
                    Job = p.Job,
                    Mobile = p.Mobile,
                    Email = p.Email,
                    EducationName = p.tbDictEducation.EducationName,
                    KinshipName = p.tbDictKinship.KinshipName,
                    UnitName = p.UnitName
                }).ToList();
            }

            return(View(vm));
        }
 public ActionResult FamilyList(Models.StudentFamily.FamilyList vm)
 {
     return(Code.MvcHelper.Post(null, Url.Action("FamilyList", new
     {
         id = vm.StudentId,
         searchText = vm.SearchText
     })));
 }