public async Task <IActionResult> SaveOptionResult(SaveOptionResultModel model)
        {
            model.DeviceId = GetDeviceId();
            await _optionService.VoteOnOption(model);

            return(Ok());
        }
示例#2
0
 public async Task VoteOnOption(SaveOptionResultModel model)
 {
     _optionRepository.SaveOptionResult(model.SlideId, model.OptionId, model.DeviceId);
     await _votingService.ShareResult(model.OptionId);
 }