public ActionResult CancelOrder(int orderTourId, int tourId) { var order = _orderTourRepository.GetById(orderTourId); var orderDetail = order.OrderTourDetails; var tour = orderDetail.First().Tour; order.Status = "Cancel"; var quanOrder = orderDetail.First().QuantityChild + orderDetail.First().QuantityAdult; tour.QuantityPeople += quanOrder; _orderTourRepository.Update(order); return(RedirectToAction("GetOrdersTour", new { tourId = tourId })); }
public ActionResult GetInforOrder(int orderId) { var order = _orderTourRepository.GetById(orderId); return(PartialView(order)); }