public async Task <ActionResult> ConfirmFriend(string username)
        {
            var loggedUser = await GetLoggedUser();

            var friendToConfirm = await UserFacade.GetUserByUsernameAsync(username);

            if (loggedUser == null)
            {
                RedirectToLogin();
            }

            if (friendToConfirm == null)
            {
                ModelState.AddModelError("User", "User does not exist!");
                return(View());
            }

            var friendshipToConfirm = await UserFacade.GetFriendshipRequestBetweenUsers(loggedUser.Id, friendToConfirm.Id);

            if (friendshipToConfirm == null || friendshipToConfirm.IsConfirmed)
            {
                ModelState.AddModelError("User", "Cannot confirm friendship with this user!");
                return(View());
            }

            try
            {
                string url = Request.UrlReferrer.AbsoluteUri;
                await UserFacade.ConfirmFriendshipRequest(friendshipToConfirm);

                return(Redirect(url));
            }
            catch (Exception)
            {
                ModelState.AddModelError("User", "Cannot confirm friendship with this user");
                return(View());
            }
        }