public async Task <IActionResult> Favorite(Guid id)
        {
            var user = await _userManager.GetUserAsync(HttpContext.User);

            await _repository.FavoritePhotoAsync(user.Id, id);

            return(RedirectToAction("Index")); //popraviti
        }