public ActionResult QuickOrder() { if (Session["basket"] == null) { return(RedirectToAction("Index", "Cart")); } ViewBag.City = cityDAL.GetList().OrderBy(x => x.CityName).ToList(); return(View()); }
public ActionResult addressModal(string id) { ETicaret.Model.Models.Entity.UserAddress userAddress; if (id == "new") { userAddress = new Model.Models.Entity.UserAddress(); ViewBag.District = districtDAL.GetList(x => x.CityID == 34).OrderBy(x => x.DistrictName).ToList(); } else { userAddress = userAddressDAL.Get(x => x.UserAddressID == new Guid(id)); ViewBag.District = districtDAL.GetList(x => x.CityID == userAddress.District.City.CityID).OrderBy(x => x.DistrictName).ToList(); TempData["addressID"] = id; } ViewBag.City = cityDAL.GetList().OrderBy(x => x.CityName).ToList(); return(PartialView("addressModal", userAddress)); }