public void Add(PublicEvent @event)
 {
     @event.Id = $"event-{_events.Count*10}";
     @event.numberOfRegistered = 0;
     _events.Add(@event);
     Console.WriteLine($"Event (title: {@event.Title}) was created");
 }
 public PublicEvent Post([FromBody] PublicEvent @event)
 {
     _repository.Add(@event);
     return(@event);
 }