Пример #1
0
        public async Task <IActionResult> AddRating(int placeId, int number)
        {
            var user = await _userManager.GetUserAsync(User);

            await _service.AddRating(placeId, user.Id, number);

            return(RedirectToAction("Details", new { id = placeId }));
        }