public static Event CreateEvent(global::System.Int32 eventId, global::System.String name, global::System.DateTime created, global::System.String creator, global::System.Int32 availableSpots, global::System.DateTime deadLine, global::System.Int32 categoryId, global::System.DateTime startTime, global::System.Boolean isAutomaticDrawing)
{
Event @event = new Event();
@event.EventId = eventId;
@event.Name = name;
@event.Created = created;
@event.Creator = creator;
@event.AvailableSpots = availableSpots;
@event.DeadLine = deadLine;
@event.CategoryId = categoryId;
@event.StartTime = startTime;
@event.IsAutomaticDrawing = isAutomaticDrawing;
return @event;
}