Esempio n. 1
0
        public ActionResult Index(int?id, int?salario)
        {
            ViewBag.Empleado         = modelo.GetEmpleado(id.GetValueOrDefault()) as Empleado;
            ViewBag.EmpleadosSalario = modelo.GetEmpleadosSalario(salario.GetValueOrDefault()) as List <Empleado>;

            return(View(modelo.GetEmpleados()));
        }