public User Create(User user) { redditContext.Users.Add(user); redditContext.SaveChanges(); return(Read(user.UserName)); }
public Post Create(Post post) { redditContext.Posts.Add(post); redditContext.SaveChanges(); return(Read(post.Id)); }