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