public MResponseList <Delegation> getDelegates(string deptId) { DelegationDAO delegationDAO = new DelegationDAO(); MResponseList <Delegation> respone = new MResponseList <Delegation>() { ResList = delegationDAO.GetDelegations(deptId), }; return(respone); }
public MResponse GetCollectionPoints() { CollectionPointDAO dao = new CollectionPointDAO(); MResponseList <CollectionPoint> response = new MResponseList <CollectionPoint>() { ResList = dao.GetCollectionPoints(), Success = true }; return(response); }
public MResponse GetEmployees(string deptId) { EmployeeDAO empDao = new EmployeeDAO(); MResponseList <Employee> response = new MResponseList <Employee>() { ResList = empDao.GetEmployeeByDeptId(deptId), Success = true }; return(response); }