public async Task <ActionResult <Event> > PostEvent([FromBody] Event @event) { var user = await _authLogic.GetUserFromJWT(HttpContext.User.Identity as ClaimsIdentity); @event.User_Id = user.Id; return(await _eventLogic.PostEvent(@event)); }
public async Task <ActionResult <Event> > PostEvent([FromBody] Event @event) { var user = await _authLogic.GetUserFromJWT(HttpContext.User.Identity as ClaimsIdentity); @event.User_Id = user.Id; return(await _eventLogic.PostEvent(@event)); }