Esempio n. 1
0
        // GET: Blogs/Create
        public ActionResult Create()
        {
            if (Request.IsAuthenticated)
            {
                PostType pt = new PostType();
                ViewBag.pt = pt.returnList();

                return(View());
            }
            else
            {
                return(RedirectToAction("LogIn", "Account", new { id = "loginLink" }));
            }
        }