コード例 #1
0
        public ActionResult PostPost(Post post)
        {
            var create = new FITlosophiOperations();

            create.AddPost(post);

            if (User.IsInRole("Admin"))
            {
                return(View("ManagePosts"));
            }


            return(RedirectToAction("Index", "Home"));
        }
コード例 #2
0
        public void Post(Post post)
        {
            var create = new FITlosophiOperations();

            create.AddPost(post);
        }