Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }