示例#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);
        }
示例#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());
        }
示例#3
0
 public void ShowServicesView(IShowServicesForVideoWallView <VideoWall> view, IMainController mainController,
                              IList <VideoWall> videoWalls)
 {
     view.ShowModal(mainController, videoWalls);
 }
示例#4
0
 public IList <Service> GetServicesForVideoWall(
     IShowServicesForVideoWallView <VideoWall> showServicesForVideoWallView)
 {
     return(_serviceController.GetServicesForVideoWall(showServicesForVideoWallView, _serviceRepository));
 }