public ActionResult InformationForBill(castBillInfor paymentInfor) { StaticVariable.HoTen = paymentInfor.HoTen; StaticVariable.Phone = paymentInfor.Phone; StaticVariable.City = paymentInfor.City; StaticVariable.District = paymentInfor.District; StaticVariable.State = paymentInfor.State; StaticVariable.Address = paymentInfor.Address; return(RedirectToAction("checkout")); }
public ActionResult InformationForBill(string id) { StaticVariable.Book_ID = id; if (Session["ID"] != null) { cast_RegisterCustomerModel getUserOnMock = CustomerDAO.GetUserOnMock(Convert.ToInt32(Session["ID"].ToString())); castBillInfor user = new castBillInfor(); user.HoTen = getUserOnMock.LastName + " " + getUserOnMock.FirstName; return(View(user)); } else { return(View()); } }