public void Post(Post post) { var create = new FITlosophiOperations(); create.AddPost(post); }
public ActionResult PostPost(Post post) { var create = new FITlosophiOperations(); create.AddPost(post); if (User.IsInRole("Admin")) { return View("ManagePosts"); } return RedirectToAction("Index", "Home"); }