public ActionResult BooksByAuthor() { List <AuthorModel> model; providerContext = new ProviderPage(context); model = providerContext.Authors().Select(c => (AuthorModel)c).ToList(); return(PartialView("~/Views/ProviderPage/_BooksByAuthor.cshtml", model)); }
private ProviderPage GetProviderPagePreview(ProviderPage ProviderPageActive, ProviderPagePreview preview, int lastIdProviderPage) { var ProviderPagePreview = new ProviderPage { ProviderPageCustomValue = $"ProviderPage_{lastIdProviderPage}", ProviderPageTitle = "Proveedores", ProviderPageActive = true, ProviderPageCreatedDate = DateTime.Now, ProviderPageHeadText = preview.HeadTextProviderPage ?? ProviderPageActive.ProviderPageHeadText, ProviderPageBgColorHead = preview.BgColorHeadProviderPage ?? ProviderPageActive.ProviderPageBgColorHead, ProviderPageColorHeadText = preview.ColorHeadTextProviderPage ?? ProviderPageActive.ProviderPageColorHeadText, ProviderPageSubText = preview.SubText1ProviderPage ?? ProviderPageActive.ProviderPageSubText, ProviderPageColorSubText = preview.ColorSubTextProviderPage ?? ProviderPageActive.ProviderPageColorSubText, DocumentTypes = GetActiveDocuments(), }; return(ProviderPagePreview); }
public ProviderPageController() { context = new LibContext(); providerContext = new ProviderPage(context); }
public void ThenIWillBeShownTheFindAProviderPage() { ProviderPage.VerifyFindAProviderPage(); }