public async Task <ParticipantsModel> GetParticipants() { try { return(await _santaService.GetParticipants()); } catch (Exception ex) { LoggerHelper.Log(ex); return(new ParticipantsModel()); } }
public async Task GetParticipants() { try { var participants = await _santaService.GetParticipants(); await Clients.All.SendAsync("GetParticipants", participants); } catch (Exception ex) { LoggerHelper.Log(ex); } }