public async Task YorumGonder(Olustur.Command command) { var kullaniciAdi = Context.User?.Claims?.FirstOrDefault(x => x.Type == ClaimTypes.NameIdentifier)?.Value; command.KullaniciAdi = kullaniciAdi; var yorum = await _mediator.Send(command); await Clients.All.SendAsync("YorumYapildi", yorum); }
public async Task <ActionResult <Unit> > Olustur([FromBody] Olustur.Command command) { return(await Mediator.Send(command)); }