public IActionResult ConnectToUser(Guid userId, UserConnectionType connectionType) { OperationResultVo response = profileAppService.Connect(CurrentUserId, userId, connectionType); string fullName = GetSessionValue(SessionValues.FullName); notificationAppService.Notify(CurrentUserId, fullName, userId, NotificationType.ConnectionRequest, CurrentUserId); return(Json(response)); }
public IActionResult ConnectToUser(Guid userId, UserConnectionType connectionType) { OperationResultVo response = profileAppService.Connect(CurrentUserId, userId, connectionType); string fullName = GetSessionValue(SessionValues.FullName); string text = String.Format(SharedLocalizer["{0} wants to connect."], fullName); string url = Url.Action("Details", "Profile", new { id = CurrentUserId }); notificationAppService.Notify(CurrentUserId, userId, NotificationType.ConnectionRequest, userId, text, url); return(Json(response)); }