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)); }