public ViewResult Districts()
 {
     CommonData commonData = new CommonData(repository);
     List<DistrictJSON> districts = new List<DistrictJSON>();
     foreach (Districts district in repository.Districts)
         districts.Add(new DistrictJSON {
             id = district.id,
             name = district.name,
             city_id = district.city_id,
             city_name = district.Cities.name
         });
     DistrictsModel districtsModel = new DistrictsModel
     {
         districts = districts,
         listCity = commonData.GetCities()
     };
     return View(districtsModel);
 }
 // GET: Estates
 
 public ActionResult Table()
 {
     //string userName;
     //if (User.Identity.IsAuthenticated)
         //userName = User.Identity.Name;
     CommonData commonData = new CommonData(repository);
     string userName;
     if (User.Identity.IsAuthenticated)
         userName = User.Identity.Name;
     TableModel tableModel = new TableModel
     {
         estates = CreateJSONEstate(repository.Estates),
         users = commonData.GetUsers(),
         regions = commonData.GetRegions(),
         cities = commonData.GetCities(),
         floors = commonData.GetFloors(),
         rooms = commonData.GetRooms()
     };
     return View(tableModel);
 }