Пример #1
0
        public void RemoveEmployee(IRemoveEmployeeView inForm, IRepository <Employee> repository)
        {
            var employee = inForm.EmployeeData;
            var oib      = employee.Oib;

            repository.Delete(repository.FindBy(x => x.Oib == oib));
        }
Пример #2
0
        public bool DoesEmployeeRepairWall(IRemoveEmployeeView inForm, IRepository <VideoWall> repository)
        {
            var oib = inForm.EmployeeData.Oib;
            var use = repository.FindBy(x => x.Servicers.Count(servicer => servicer.Oib == oib) != 0);

            return(use != null);
        }
Пример #3
0
 public void ShowRemoveEmployee(IRemoveEmployeeView inForm)
 {
     inForm.ShowViewModal();
 }
Пример #4
0
 public bool DoesEmployeeRepairSomeWall(IRemoveEmployeeView inForm)
 {
     return(_videoWallController.DoesEmployeeRepairWall(inForm, _videoWallRepository));
 }
Пример #5
0
 public void RemoveEmployee(IRemoveEmployeeView inForm)
 {
     _employeeController.RemoveEmployee(inForm, _employeeRepository);
 }