Esempio n. 1
0
        public ActionResult Edit(int id)
        {
            string role = new Business.AccountBusiness().currentMember();

            if (role == "U" || role == "A")
            {
                return(RedirectToAction("Login", "Account"));
            }
            var city = webApi.GetCity(id);

            ViewBag.Areas = new SelectList(webApi.GetAreas(), "AREA_ID", "AREA_NAME");
            return(View(city));
        }