Пример #1
0
 public EventService()
 {
     configurations    = new Configurations();
     _gngLoggerService = new LoggerService();
     _eventTagService  = new EventTagService();
     Int32.TryParse(Environment.GetEnvironmentVariable("EventId", EnvironmentVariableTarget.User), out eventId);
 }
Пример #2
0
 public EventsController(IEventService eventService, IEventLocationService eventLocationService, IEventTagService eventTagService, IEventMediaService eventMediaService, ITagService tagService)
 {
     _eventService         = eventService ?? throw new ArgumentNullException(nameof(eventService));
     _eventLocationService = eventLocationService ?? throw new ArgumentNullException(nameof(eventLocationService));
     _eventTagService      = eventTagService ?? throw new ArgumentNullException(nameof(eventTagService));
     _eventMediaService    = eventMediaService ?? throw new ArgumentNullException(nameof(eventMediaService));
     _tagService           = tagService ?? throw new ArgumentNullException(nameof(tagService));
 }