Пример #1
0
 public ActionLink BuildLink(Theme theme)
 {
     RouteValueDictionary routeValueDictionary = new RouteValueDictionary();
     routeValueDictionary.Add("id", theme.Id);
     ActionLink actionLink = new ActionLink("Play", "Training", routeValueDictionary);
     return actionLink;
 }
Пример #2
0
 public ActionLink BuildLink(Theme theme)
 {
     var c = PluginController.LmsService.FindService<ICourseService>().GetCourse(theme.CourseRef.Value);
     RouteValueDictionary routeValueDictionary = new RouteValueDictionary();
     routeValueDictionary.Add("id", c.Id);
     ActionLink actionLink = new ActionLink("Training", "Play", new RouteValueDictionary(routeValueDictionary));
     return actionLink;
 }