public void AddServiceForVideoWall(IShowServicesForVideoWallView <VideoWall> inForm) { IAddServiceView addServiceView = new AddServiceForm(this); var videoWall = _videoWallController.GetVideoWallByLocation(inForm.Location, _videoWallRepository); addServiceView.SnoozeVideoWall(videoWall); _serviceController.ShowAddService(addServiceView); }
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()); }
public void ShowServicesView(IShowServicesForVideoWallView <VideoWall> view, IMainController mainController, IList <VideoWall> videoWalls) { view.ShowModal(mainController, videoWalls); }
public IList <Service> GetServicesForVideoWall( IShowServicesForVideoWallView <VideoWall> showServicesForVideoWallView) { return(_serviceController.GetServicesForVideoWall(showServicesForVideoWallView, _serviceRepository)); }