示例#1
0
        public async Task <IActionResult> LikePhoto(Guid id)
        {
            ApplicationUser user = await _userManager.GetUserAsync(HttpContext.User);

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

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