public ActionResult ThongTinDonVi(string matruong)
        {
            School school = schoolRepository.GetSchoolByMaTruong(matruong.Trim());

            if (school == null || school.IsDaTaoMoi == false)
            {
                return(RedirectToRoute("kiemtramatruong"));
            }
            List <District> districts = districtRepository.GetDistrictsByProvinceId(79);
            List <Ward>     wards;

            if (school.WardId == null)
            {
                wards = wardRepository.GetWardsByDistrictId(760);
            }
            wards = wardRepository.GetWardsByDistrictId(school.Ward.DistrictID);
            ThongTinTruongOneViewModel thongTinTruongOneViewModel = new ThongTinTruongOneViewModel(school, districts, wards);

            ViewBag.HopDongDaKis = hopDongRepository.GetHopDongsBySchoolId(school.Id);
            return(View(thongTinTruongOneViewModel));
        }
        public ActionResult GetWardByDistrictId(int id)
        {
            List <Ward> wards     = wardRepository.GetWardsByDistrictId(id);
            var         wardsJson = JsonConvert.SerializeObject(wards,
                                                                Formatting.None,
                                                                new JsonSerializerSettings()
            {
                ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore
            });

            return(Json(new ReturnFormat(200, "success", wardsJson), JsonRequestBehavior.AllowGet));
        }