コード例 #1
0
        public ActionResult EntryCreate(int blogId)
        {
            Blog      blog     = CurrentStoreFrontOrThrow.Blogs.Where(b => b.BlogId == blogId).Single();
            BlogEntry newEntry = GStoreDb.BlogEntries.Create();

            newEntry.SetDefaultsForNew(blog, CurrentUserProfileOrThrow);

            return(View("EntryCreate", newEntry));
        }