Exemplo n.º 1
0
        // GET: Employee
        public ActionResult Index(/*string sortOrder*/)
        {
            //ViewBag.NameSortParm = String.IsNullOrEmpty(sortOrder) ? "FirstName_desc" : "";
            //ViewBag.DateSortParm = sortOrder == "DateOfEmployment" ? "DateOfEmployment_desc" : "DateOfEmployment";

            var employeeDtos = service.GetAllEmployees();

            return(View(employeeDtos));
        }
        //

        // GET: EmployeeGrid
        public ActionResult Index()
        {
            return(View(service.GetAllEmployees()));
        }
Exemplo n.º 3
0
 // GET: Salaries/Create
 public ActionResult Create()
 {
     ViewBag.Id = new SelectList(serviceEmployee.GetAllEmployees(), "Id", "FirstName");
     return(View());
 }