public void AddFollower(string userName, string name) { FOLLOWING f = new FOLLOWING(); f.User_ID = name; f.Following_ID = userName; db.FOLLOWER.Add(f); db.SaveChanges(); }
public static void CreateUser(PERSON pERSON) { using (var context = new TwitterCloneDataContext()) { context.PERSON.Add(pERSON); context.SaveChanges(); } }