public async Task <IActionResult> SaveOptionResult(SaveOptionResultModel model) { model.DeviceId = GetDeviceId(); await _optionService.VoteOnOption(model); return(Ok()); }
public async Task VoteOnOption(SaveOptionResultModel model) { _optionRepository.SaveOptionResult(model.SlideId, model.OptionId, model.DeviceId); await _votingService.ShareResult(model.OptionId); }