public List <PersonalRequest> getAll() { return(PersonalRequestRepository.getAll()); }
public void update(int id, string note, string status) { PersonalRequestRepository.update(id, note, status); }
public int getLastID() { PersonalRequestRepository repository = new PersonalRequestRepository(); return(repository.getLastID()); }
public void add(int employeeID, string title, string description, string type) { PersonalRequest p = PersonalRequestFactory.create(employeeID, title, description, type); PersonalRequestRepository.add(p); }
public PersonalRequest addPersonalRequest(PersonalRequest request) { PersonalRequestRepository repository = new PersonalRequestRepository(); return(repository.addPersonalRequest(request)); }
public PersonalRequest updatePersonalRequest(int requestID, PersonalRequest request) { PersonalRequestRepository repository = new PersonalRequestRepository(); return(repository.updatePersonalRequest(requestID, request)); }
public PersonalRequest getPersonalRequest(int requestID) { PersonalRequestRepository repository = new PersonalRequestRepository(); return(repository.getPersonalRequest(requestID)); }
public dynamic getAllPersonalRequest(int employeeID) { PersonalRequestRepository repository = new PersonalRequestRepository(); return(repository.getAllPersonalRequest(employeeID)); }
public dynamic getAllPersonalRequest(string type) { PersonalRequestRepository repository = new PersonalRequestRepository(); return(repository.getAllPersonalRequest(type)); }