コード例 #1
0
        public async Task <IActionResult> AcceptInvitation(int id)
        {
            var userId = this.GetUserId();
            await _eventService.AcceptInvatationAsync(id, userId);

            var ev = await _eventService.GetEventByIdAsync(id, nameof(Event.Owner));

            await _notificationManager.InvitationAcceptedAsync(ev.Owner.Id, ev.Name, User.Identity.Name);

            return(Ok());
        }