Beispiel #1
0
        public void AddServiceForVideoWall(IShowServicesForVideoWallView <VideoWall> inForm)
        {
            IAddServiceView addServiceView = new AddServiceForm(this);
            var             videoWall      = _videoWallController.GetVideoWallByLocation(inForm.Location, _videoWallRepository);

            addServiceView.SnoozeVideoWall(videoWall);
            _serviceController.ShowAddService(addServiceView);
        }
Beispiel #2
0
        public IList <Service> GetServicesForVideoWall(
            IShowServicesForVideoWallView <VideoWall> showServicesForVideoWallView,
            IRepository <Service> serviceRepository)
        {
            var location = showServicesForVideoWallView.Location;

            return(serviceRepository.All().Where(x => x.VideoWall.Location.City == location.City &&
                                                 x.VideoWall.Location.Street == location.Street &&
                                                 x.VideoWall.Location.ZipCode == location.ZipCode).ToList());
        }
Beispiel #3
0
 public void ShowServicesView(IShowServicesForVideoWallView <VideoWall> view, IMainController mainController,
                              IList <VideoWall> videoWalls)
 {
     view.ShowModal(mainController, videoWalls);
 }
Beispiel #4
0
 public IList <Service> GetServicesForVideoWall(
     IShowServicesForVideoWallView <VideoWall> showServicesForVideoWallView)
 {
     return(_serviceController.GetServicesForVideoWall(showServicesForVideoWallView, _serviceRepository));
 }