public async Task SendShot(CreateShotCommand command) { var incident = await _mediator.Send(command); await Clients.All.SendAsync("ReceiveShot", incident.Shot.IsAccurate, incident.IsGuest, incident.Shot.Value, incident.MatchId, incident.Quater, incident.Minutes, incident.Seconds, incident.Id); }
public async Task <IActionResult> Create([FromBody] CreateShotCommand command) { var id = await Mediator.Send(command); return(Ok(id)); }