public void Post(Post post)
        {
            var create = new FITlosophiOperations();

            create.AddPost(post);
        }
Exemplo n.º 2
0
        public ActionResult PostPost(Post post)
        {
            var create = new FITlosophiOperations();

            create.AddPost(post);

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

            return RedirectToAction("Index", "Home");
        }