Exemple #1
0
        public async Task <IActionResult> SubscribeToUser(string ownerId)
        {
            var user = await _userManager.GetUserAsync(HttpContext.User);

            await _repository.SubscribeToUserAsync(user.Id, ownerId);

            return(RedirectToAction("Index", "Home"));
        }