public IActionResult Add(string post) { RedditRepository.AddPost(post); return(RedirectToAction("Index")); }
public Post CreatePost(PostCreator postCreator) { return(redditRepository.AddPost(postCreator)); }
public IActionResult Add(string post) { RedditRepository.AddPost(post); return(RedirectToAction("Index")); }
public Post CreatePost(PostCreator postCreator) { return(redditRepository.AddPost(postCreator)); }