public async Task <bool> MakeUserOnline(string appId, string userId, string connectionId, string access_token) { var connection = new Connection() { ConnectionId = connectionId, JWTToken = access_token }; var activity = new Activity() { ActivityType = Model.Enum.ActivityType.getOnline, ConnectionId = connectionId, Date = DateTime.Now }; var result = await _userRepository.AddActivityAndManageConnectionToUserAsync(userId, activity, connection); return(result); }