public ActionResult CheckOutOnePage() { CheckOutBL checkOutBL = new CheckOutBL(); var addresses = checkOutBL.GetAddressList(User.Identity.Name); ViewBag.AddressTitle = new SelectList(addresses, "Id", "AddressTitle"); return(View()); }
public ActionResult MyAddress() { UserAddressesList userAddressesList = new UserAddressesList(); List <UserAddressViewModel> userAddressViewModelList = new List <UserAddressViewModel>(); CheckOutBL checkOutBL = new CheckOutBL(); userAddressViewModelList = checkOutBL.GetAddressList(User.Identity.Name); userAddressesList.UserAddressViewModelList = userAddressViewModelList; return(View(userAddressesList)); }