Exemple #1
0
        /**
         * Metodo que conecta la cada de datos del Dao con la facade con el fin de ser alcanzada por los proyectos que
         * utilicen a masGlobanmodelo como referencia
         */
        public List <EmployeesDto> ConsultEmployees(int cedula, int indicador)
        {
            EmployeesDao objDao       = new EmployeesDao();
            var          respuestaDao = objDao.ConsultEmployees(cedula, indicador);

            return(respuestaDao);
        }
Exemple #2
0
        public ActionResult index(string search, int page = 1, int pageSize = 5)
        {
            var dao = new EmployeesDao();
            //Tạo page sử dụng Pagedlist
            var model = dao.ListAllPaging(search, page, pageSize);

            ViewBag.Search = search;
            return(View(model));
        }
Exemple #3
0
        /// <summary>
        /// 取得所有員工
        /// </summary>
        /// <returns></returns>
        public IList <Employee> GetEmployees()
        {
            EmployeesDao dao = new EmployeesDao();

            return(dao.GetAllEmployees());
        }
 public EmployeesController()
 {
     empDao = new EmployeesDao();
 }