public ActionResult Edit(Edit edit)
        {
            int accountId = int.Parse(Session["id"].ToString());
            if (ModelState.IsValid)
            {
                int city = CityController.GetIdByTerm(edit.City);
                int district = DistrictController.GetIdByTerm(edit.District);

                if (Model.Controller.AccountController.Update(accountId, edit.Name, edit.Address, edit.Tel, edit.SocialId, city, district))
                {
                    return RedirectToAction("Index");
                }
            }

            var db = new FoodStoreEntities();

            return View();
        }
        public ActionResult Edit()
        {
            if (Session["login"] == null || (bool)Session["login"] == false)
            {
                return RedirectToAction("Login", "Account");
            }
            var db = new FoodStoreEntities();
             int accountId = int.Parse(Session["id"].ToString());
            ACCOUNT account = Model.Controller.AccountController.GetById(accountId);

            Edit edit = new Edit()
                            {
                                Address = account.Address,
                                //City = account.CITY.Name,
                                //District = account.DISTRICT.Name,
                                Name = account.Name,
                                SocialId = account.SocialID,
                                Tel = account.Tel,
                                Email = account.Email
                            };
            return View(edit);
        }