public async Task<SnapshotModel> AddSnapshot(SnapshotModel snapshotModel, string profileId)
{
snapshotModel = await _snapshotService.AddSnapshot(profileId, snapshotModel);
var group = await _groupService.GetGroupForConnection(ConnectionId);
if (group != null)
{
await Clients.OthersInGroup(group.Name).SendAsync("OnAddSnapshot", ConnectionId, profileId, snapshotModel);
}
LogDebug($"Added snapshot containing {snapshotModel.StashTabs.Sum(s => s.PricedItems.Count())} items worth {Math.Round(snapshotModel.StashTabs.Sum(s => s.Value), 0)} chaos in " + _timer.ElapsedMilliseconds + " ms.");
return snapshotModel;
}