Beispiel #1
0
        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);
        }
Beispiel #2
0
 public async Task <ActionResult <Unit> > Olustur([FromBody] Olustur.Command command)
 {
     return(await Mediator.Send(command));
 }