public async Task <IActionResult> LikePhoto(Guid id) { ApplicationUser user = await _userManager.GetUserAsync(HttpContext.User); await _repository.LikePhotoAsync(user.Id, id); return(RedirectToAction("Index")); //popraviti }
public async Task <IActionResult> LikePhoto(Guid id) { ApplicationUser user = await _userManager.GetUserAsync(HttpContext.User); await _repository.LikePhotoAsync(user.Id, id); return(RedirectToAction("Index")); //popraviti }