public List <string> GetBreadCrumbs(TestSectionVM model) { var breadcrumb = new List <string>(); breadcrumb.Add(_helper.Url().Tests().ToString()); return(breadcrumb); }
public ActionResult Section(string urlName) { var section = SectionService.GetAll().ByUrlName(urlName); if (section == null) { return(null); } var tests = SiteObjectService.GetByRelationObject <Test>(section) .Where(x => x.CompanyId == null && x.Status == TestStatus.Active) .OrderByDescending(x => x.Id).ToList(); // if(urlName == "english" && // !tests.Select(x => x.Id).SequenceEqual(TestRecomendations.Tests.Select(x => x.Key))) { // Logger.Exception(new Exception("english section tests recomendations"), User); // } var model = new TestSectionVM { Section = section, Tests = tests, }; return(BaseView(PartialViewNames.Section, model)); }
private string GetTitle(TestSectionVM model) { return(model.Section.Name); }