public IList <Employee> GetServicersOfVideoWall(IAddServiceView inForm,
                                                        IRepository <VideoWall> videoWallRepository)
        {
            var location = inForm.VideoWallLocation;

            return(GetServicers(videoWallRepository, location));
        }
Example #2
0
        public void AddNewService(IAddServiceView inForm, IRepository <Service> serviceRepository,
                                  IRepository <VideoWall> videoWallRepository)
        {
            var employee  = inForm.Employee;
            var location  = inForm.VideoWallLocation;
            var videoWall = videoWallRepository.FindBy(x => x.Location.City == location.City &&
                                                       x.Location.Street == location.Street &&
                                                       x.Location.ZipCode == location.ZipCode);

            var service = new Service(employee, inForm.ServiceStartTime,
                                      inForm.ServiceEndTime, inForm.FailureType, videoWall);

            serviceRepository.Add(service);
        }
Example #3
0
 public void ShowAddService(IAddServiceView inForm)
 {
     inForm.ShowViewModal();
 }
 public void SetView(IAddServiceView view)
 {
     m_view = view;
 }
Example #5
0
 public IList <Employee> GetServicersOfVideoWall(IAddServiceView inForm)
 {
     return(_videoWallController.GetServicersOfVideoWall(inForm, _videoWallRepository));
 }
Example #6
0
 public void AddService(IAddServiceView inForm)
 {
     _serviceController.AddNewService(inForm, _serviceRepository, _videoWallRepository);
 }