Exemplo n.º 1
0
        public ActionResult EditGallery(string navSlug, int postId, PostType postType)
        {
            Nav nav = AdminManager.GetNav(navSlug);

            var post = (Gallery) BlogApp.GetPost(nav, postId);

            // tags
            string[] tags = new string[post.Tags.Count];
            for (int i = 0; i < post.Tags.Count; i++)
            {
                tags[i] = post.Tags[i].TagName;
            }
            string tagNames = string.Join(", ", tags);

            var model = new GalleryEditorModel();

            return View("EditGallery", (Gallery)post);
        }
Exemplo n.º 2
0
        public ActionResult AddGallery(string navSlug)
        {
            return View("ComingSoon");

            var post = new GalleryEditorModel();

            return View("GalleryEditor", post);
        }
Exemplo n.º 3
0
 public ActionResult AddGallery(string navSlug, FormCollection coll)
 {
     var post = new GalleryEditorModel();
     return View("Index", post);
 }