コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public ProviderPageController()
 {
     context         = new LibContext();
     providerContext = new ProviderPage(context);
 }
 public void ThenIWillBeShownTheFindAProviderPage()
 {
     ProviderPage.VerifyFindAProviderPage();
 }