Пример #1
0
        public ActionResult Index()
        {
            var details = new DemoFill();

            var siteProfile = new PersonProfile
            {
                FirstName     = "Lorin",
                LastName      = "Hart",
                Email         = "*****@*****.**",
                BioDetails    = details.FillWithLatinText(250),
                BioImagePath  = "/include/images/biopic.jpg",
                SkillsList    = new string[] { "Computer Programmer", "Entrepreneur", "Business Consultant", "Children's Author" },
                Title         = "",
                ShortBiio     = details.FillWithLatinText(75),
                PersonalQuote = "If you dont know what I'm doing, how do you know I'm wrong?",
                QuoteAuthor   = "Lorin M. Hart"
            };

            ViewBag.SiteName    = "Lorin Hart";
            ViewBag.Copyright   = "Offical Site of Lorin M. Hart";
            ViewBag.Maintenance = 3;



            return(View(siteProfile));
        }
Пример #2
0
        public IActionResult Index()
        {
            //Get Site Details
            var site = new SiteModel
            {
                SiteName  = "Lorin Hart",
                Copywrite = "Official Site of Lorin M Hart",
                MenuItems = new string[, ] {
                    { "Home", "/index" }, { "Contact", "/contact" }
                }
            };

            //Get Profile from datasource
            var Profile = new ProfileModel
            {
                FirstName    = "Lorin",
                LastName     = "Hart",
                Email        = "*****@*****.**",
                BioDetails   = DemoFill.FillWithLatinText(500),
                BioImagePath = "images/biopic.jpg",
                SiteName     = site.SiteName,
                Copywrite    = site.Copywrite,
                Menu         = site.MenuItems
            };

            return(View(Profile));
        }