예제 #1
0
        public ActionResult About()
        {
            var model = new ContentModel();

            using (var db = new DataDBContext())
            {
                var about = db.Items.Find(Guid.Parse("795D793B-2F0B-47C2-A22E-C9AC099DDDAF"));
                model.Body = about.Content01;
            }

            return View(model);
        }
예제 #2
0
        public ActionResult Services()
        {
            var model = new ContentModel();

            using (var db = new DataDBContext())
            {
                var service = db.Items.Find(Guid.Parse("27F9C104-1AAD-49B2-86C7-592A360DB7E5"));
                model.Body = service.Content01;
            }

            return View(model);
        }
예제 #3
0
파일: HomeModels.cs 프로젝트: Mansyn/Schaal
 public GalleryViewModel()
 {
     Images = new List<MasonryImage>();
     Content = new ContentModel();
 }