Example #1
0
        public ActionResult OrgComplete(decimal orderID)
        {
            var order = OrderService.GetByPKAndUserID(orderID,
                                                      AuthService.CurrentUser.UserID);

            if (order == null)
            {
                return(RedirectToCart());
            }
            if (order.OrderDetails.Any(x => !x.IsOrg))
            {
                OrderService.DeleteAndSubmit(order);
                return(RedirectToCart());
            }
            order.OurOrg_TC = PaymentDataCreator.GetOurOrg(order, CourseService.SeminarCourses());
            if (order.PaymentType_TC == null)
            {
                MailService.OrderInfoForManager(order, null, true);
            }
            order.PaymentType_TC = PaymentTypes.Invoice;

            ShoppingCartVMService.Clear();
            CheckOrder(order);

            OrderService.SubmitChanges();


            var model = new OrgOrderCompleteVM {
                Order = order
            };

            return(BaseView(Views.Order.OrgComplete, model));
        }
Example #2
0
 public List <string> GetBreadCrumbs(OrgOrderCompleteVM model)
 {
     return(_.List(_helper.Card().ToString()));
 }