// xacs nhan public ActionResult OrderDetail(long?id) { var temp = db.OrderDetails.Where(d => d.OrderID == id); List <OrderDetailEntity> listdetail = new List <OrderDetailEntity>(); foreach (var item in temp) { OrderDetailEntity or = new OrderDetailEntity(); or.TypeOf_OrderEntity(item); listdetail.Add(or); } return(View(listdetail)); }
// xacs nhan public ActionResult Comfirm(long?id) { var temp = db.OrderDetails.Where(d => d.OrderID == id); List <OrderDetailEntity> listdetail = new List <OrderDetailEntity>(); foreach (var item in temp) { OrderDetailEntity or = new OrderDetailEntity(); or.TypeOf_OrderEntity(item); listdetail.Add(or); } ViewBag.Date = db.Orders.SingleOrDefault(a => a.ID == id).Deliverydate; ViewBag.id = id; return(View(listdetail)); }