Beispiel #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"));
        }
Beispiel #2
0
        public void Post(Post post)
        {
            var create = new FITlosophiOperations();

            create.AddPost(post);
        }