public async Task <ParticipantsModel> GetParticipants()
 {
     try
     {
         return(await _santaService.GetParticipants());
     }
     catch (Exception ex)
     {
         LoggerHelper.Log(ex);
         return(new ParticipantsModel());
     }
 }
Ejemplo n.º 2
0
        public async Task GetParticipants()
        {
            try
            {
                var participants = await _santaService.GetParticipants();

                await Clients.All.SendAsync("GetParticipants", participants);
            }
            catch (Exception ex)
            {
                LoggerHelper.Log(ex);
            }
        }