public void AddFollowConnection(string loggedInUser,string username)
        {
            FollowConnection conn = new FollowConnection();

            conn.FollowingName = username;
            conn.Username = loggedInUser;
            db.FollowConnections.InsertOnSubmit(conn);
            db.SubmitChanges();
        }
        public ActionResult Unfollow(FollowConnection deleteMe)
        {
            DataRepository helper = new DataRepository();
            helper.deleteConnection(deleteMe);

            return RedirectToAction("Index");
        }
		private void detach_FollowConnections(FollowConnection entity)
		{
			this.SendPropertyChanging();
			entity.User = null;
		}
 partial void DeleteFollowConnection(FollowConnection instance);
 partial void UpdateFollowConnection(FollowConnection instance);
 partial void InsertFollowConnection(FollowConnection instance);
 public void FollowSelf(string username)
 {
     FollowConnection conn = new FollowConnection();
     conn.FollowingName = username;
     conn.Username = username;
     db.FollowConnections.InsertOnSubmit(conn);
     db.SubmitChanges();
 }
        public void deleteConnection(FollowConnection deleteMe)
        {
            FollowConnection delete = db.FollowConnections.FirstOrDefault(x=>x.Id == deleteMe.Id);

            db.FollowConnections.DeleteOnSubmit(delete);
            db.SubmitChanges();
        }