public void RemoveEmployee(IRemoveEmployeeView inForm, IRepository <Employee> repository) { var employee = inForm.EmployeeData; var oib = employee.Oib; repository.Delete(repository.FindBy(x => x.Oib == oib)); }
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); }
public void ShowRemoveEmployee(IRemoveEmployeeView inForm) { inForm.ShowViewModal(); }
public bool DoesEmployeeRepairSomeWall(IRemoveEmployeeView inForm) { return(_videoWallController.DoesEmployeeRepairWall(inForm, _videoWallRepository)); }
public void RemoveEmployee(IRemoveEmployeeView inForm) { _employeeController.RemoveEmployee(inForm, _employeeRepository); }