Beispiel #1
0
        public async Task <ActionResult> GetEventFilter(string Event)
        {
            var presenter = new TrafficRestrictionListPresenter();
            await _getTrafficRestrictionListUseCase.Handle(GetTrafficRestrictionListUseCaseRequest.CreateEventTrafficRestrictionRequest(Event), presenter);

            return(presenter.ContentResult);
        }
Beispiel #2
0
        public async Task <ActionResult> GetTrafficRestriction(long trafficRestrictionId)
        {
            var presenter = new MoscowTrafficRestriction.InfrastructureServices.Presenters.TrafficRestrictionListPresenter();
            await _getTrafficRestrictionListUseCase.Handle(GetTrafficRestrictionListUseCaseRequest.CreateTrafficRestrictionRequest(trafficRestrictionId), presenter);

            return(presenter.ContentResult);
        }