public async Task <IActionResult> SubscribeToUser(string ownerId) { var user = await _userManager.GetUserAsync(HttpContext.User); await _repository.SubscribeToUserAsync(user.Id, ownerId); return(RedirectToAction("Index", "Home")); }
public async Task <IActionResult> SubscribeToUser(string ownerId) { var user = await _userManager.GetUserAsync(HttpContext.User); await _repository.SubscribeToUserAsync(user.Id, ownerId); return(RedirectToAction("Index", "Home")); }