public ActionResult AcceptFriendRequest(string senderUsername, string recieverUsername) { var rep = new UserRepository(context); var friendRep = new FriendshipRepository(context); friendRep.AcceptFriendRequest(senderUsername, recieverUsername); return(RedirectToAction("Friendship", new { username = recieverUsername, category = "Show all friends" })); }