Exemplo n.º 1
0
 public IActionResult Index()
 {
     _employees = _db.GetAll().ToList();
     return(View(_employees));
 }
 public IEnumerable<EmployeeViewModel> GetAll()
 {
     return _employeesData.GetAll();
 }
Exemplo n.º 3
0
 public IActionResult GetEmployees()
 {
     return(View(_EmployeeData.GetAll().Select(e => e.MapEmployeeView())));
 }