예제 #1
0
        public async Task <IActionResult> SendParticipantRequest([FromBody] Event _event)
        {
            BaseResult <EventModel> baseResult = new BaseResult <EventModel>();
            int eventId = _event.id;
            int userId  = Convert.ToInt32(HttpContext.User.Identity.Name);
            EventParticipantRequestQueueModel eventParticipantRequestQueueModel = new EventParticipantRequestQueueModel()
            {
                eventId = eventId,
                userId  = userId
            };
            await notificationDispatcher.SendEventParticipantRequest(eventParticipantRequestQueueModel);

            return(Json(baseResult));
        }
예제 #2
0
 public Task SendEventParticipantRequest(EventParticipantRequestQueueModel model)
 {
     return(this._hubContext.Clients.All.SendAsync("sendEventParticipantRequest", model));
 }