public IActionResult Create([FromHeader(Name = "Authorization")] string token, [FromBody] EventApiModel eventApiModel) { String userId = JwtUtil.GetUserIdFromToken(token); EventModel eventModel = eventApiModel.getEventModel(userId, DateTime.Now); eventModel.Image = "StaticFiles/Images/standard.jpg"; MongoUtil.AddEvent(eventModel); return(Ok("Event created")); }