public IActionResult FollowUser(Guid userId) { OperationResultVo response = profileAppService.UserFollow(CurrentUserId, userId); string fullName = GetSessionValue(SessionValues.FullName); notificationAppService.Notify(CurrentUserId, fullName, userId, NotificationType.FollowYou, CurrentUserId); return(Json(response)); }
public IActionResult FollowUser(Guid userId) { OperationResultVo response = profileAppService.UserFollow(CurrentUserId, userId); string fullName = GetSessionValue(SessionValues.FullName); string text = String.Format(SharedLocalizer["{0} is following you now!"], fullName); string url = Url.Action("Details", "Profile", new { id = CurrentUserId }); notificationAppService.Notify(CurrentUserId, userId, NotificationType.ContentLike, userId, text, url); return(Json(response)); }