public ActionResult ConfirmRequest(int id) { BitBookEntities BitBookContext = new BitBookEntities(); Friend friend = new Friend(); friend.UserId = Convert.ToInt32(Session["UserId"]); friend.FriendId = id; friend.temp = 2; friendRequestManager.ConfirmRequest(friend); return(View()); }