public ActionResult AddFriendToCategory(FriendsModel model, string friendUserName, string categoryName) { var categoryRepository = new CategoryRepository(); var userName = User.Identity.Name; categoryRepository.AddCategoryToFriend(userName, friendUserName, categoryName); return(RedirectToAction("Friends")); }