Ejemplo n.º 1
0
 public ActionResult EditCourse(EditCourseVM model)
 {
     if (model.PriceTypeTC == null)
     {
         model.PriceTypeTC = string.Empty;
     }
     EditCourseVMService.Update(model);
     return(RedirectToDetails());
 }
Ejemplo n.º 2
0
        public ActionResult ToggleWebinar(decimal orderdetailId)
        {
            var order       = OrderService.GetCurrentOrder();
            var orderDetail = order.OrderDetails.FirstOrDefault(x => x.OrderDetailID == orderdetailId);

            if (orderDetail != null)
            {
                EditCourseVMService.Update(new EditCourseVM {
                    PriceTypeTC = orderDetail.IsWebinar ? PriceTypes.PrivatePersonWeekend : PriceTypes.Webinar, OrderDetail =
                        new OrderDetail {
                        OrderDetailID = orderDetail.OrderDetailID,
                        Group_ID      = orderDetail.Group_ID
                    }
                });
            }
            return(RedirectToDetails());
        }