Example #1
0
        public ActionResult Tracks(string courseTC, bool isSecond)
        {
            var model = TrackService.GetTrackDiscountForCourse(courseTC);

            if (model.Count == 0)
            {
                return(null);
            }
            ViewData["CourseTC"] = courseTC;
            ViewData[DynamicValues.IsSecondTrackBlock] = isSecond;
            return(View(ViewNames.CourseTracks, model));
        }