예제 #1
0
 public List <PersonalRequest> getAll()
 {
     return(PersonalRequestRepository.getAll());
 }
예제 #2
0
 public void update(int id, string note, string status)
 {
     PersonalRequestRepository.update(id, note, status);
 }
예제 #3
0
        public int getLastID()
        {
            PersonalRequestRepository repository = new PersonalRequestRepository();

            return(repository.getLastID());
        }
예제 #4
0
        public void add(int employeeID, string title, string description, string type)
        {
            PersonalRequest p = PersonalRequestFactory.create(employeeID, title, description, type);

            PersonalRequestRepository.add(p);
        }
예제 #5
0
        public PersonalRequest addPersonalRequest(PersonalRequest request)
        {
            PersonalRequestRepository repository = new PersonalRequestRepository();

            return(repository.addPersonalRequest(request));
        }
예제 #6
0
        public PersonalRequest updatePersonalRequest(int requestID, PersonalRequest request)
        {
            PersonalRequestRepository repository = new PersonalRequestRepository();

            return(repository.updatePersonalRequest(requestID, request));
        }
예제 #7
0
        public PersonalRequest getPersonalRequest(int requestID)
        {
            PersonalRequestRepository repository = new PersonalRequestRepository();

            return(repository.getPersonalRequest(requestID));
        }
예제 #8
0
        public dynamic getAllPersonalRequest(int employeeID)
        {
            PersonalRequestRepository repository = new PersonalRequestRepository();

            return(repository.getAllPersonalRequest(employeeID));
        }
예제 #9
0
        public dynamic getAllPersonalRequest(string type)
        {
            PersonalRequestRepository repository = new PersonalRequestRepository();

            return(repository.getAllPersonalRequest(type));
        }