Exemplo n.º 1
0
        // GET: Employee
        public ActionResult Index()
        {
            BusinessEmployee BusinessEmployee = new BusinessEmployee();
            var retorno = BusinessEmployee.GetAllEmployees(null);

            return(View(retorno));
        }
Exemplo n.º 2
0
        public ActionResult ListEmployees()
        {
            var retorno = BusinessEmployee.GetAllEmployees(null);

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