Example #1
0
        public ActionResult GetCourseContentsPartial(int id, string trackingId)
        {
            var infoToken = WidgetServices.GetItemInfoToken(id, BillingEnums.ePurchaseItemTypes.COURSE);

            return(PartialView("Item/Course/_CourseContent",
                               !infoToken.IsValid
                    ? new ItemProductPageToken {
                IsValid = false, Message = infoToken.Message
            }
                    : WidgetServices.ItemInfoToken2ItemProductPageToken(infoToken, new ItemAccessStateToken(),
                                                                        trackingId)));
        }