예제 #1
0
        // GET: Employee
        public ActionResult Index()
        {
            BusinessEmployee BusinessEmployee = new BusinessEmployee();
            var retorno = BusinessEmployee.GetAllEmployees(null);

            return(View(retorno));
        }
예제 #2
0
        public ActionResult ListEmployees()
        {
            var retorno = BusinessEmployee.GetAllEmployees(null);

            return(Json(retorno, JsonRequestBehavior.AllowGet));
        }