예제 #1
0
        public MResponseList <Delegation> getDelegates(string deptId)
        {
            DelegationDAO delegationDAO        = new DelegationDAO();
            MResponseList <Delegation> respone = new MResponseList <Delegation>()
            {
                ResList = delegationDAO.GetDelegations(deptId),
            };

            return(respone);
        }
예제 #2
0
        public MResponse GetCollectionPoints()
        {
            CollectionPointDAO dao = new CollectionPointDAO();
            MResponseList <CollectionPoint> response = new MResponseList <CollectionPoint>()
            {
                ResList = dao.GetCollectionPoints(),
                Success = true
            };

            return(response);
        }
예제 #3
0
        public MResponse GetEmployees(string deptId)
        {
            EmployeeDAO empDao = new EmployeeDAO();
            MResponseList <Employee> response = new MResponseList <Employee>()
            {
                ResList = empDao.GetEmployeeByDeptId(deptId),
                Success = true
            };

            return(response);
        }