public List<SelectListItem> GenerateEmployeeList()
 {
     var ops = new TimeTrackerOperations();
     List<SelectListItem> selectItemList = new List<SelectListItem>();
     Response<List<Employee>> employees = ops.GetAllEmployees();
     var model = new TimeTrackerVM();
     model.DisplayEmployeeInformation(employees.Data);
     selectItemList = model.EmployeeInfo;
     return selectItemList;
 }
        public ActionResult EditPtoRequest(int PtoRequestId)
        {
            PtoEditVM ptoEditVm = new PtoEditVM();
            ptoEditVm.GetSingleRequest(PtoRequestId);
            var ops = new TimeTrackerOperations();
            var selectedEmp = ops.GetAllEmployees().Data.FirstOrDefault(x=>x.EmpID == ptoEditVm.PtoRequestToEdit.EmpID);
            ptoEditVm.FullName = string.Format("{0}, {1}", selectedEmp.LastName, selectedEmp.FirstName);
            var managers = ops.GetManagers();
            ptoEditVm.GenerateManagersList(managers);

            return View(ptoEditVm);
        }
 public void GetAllEmployeesTest()
 {
     TimeTrackerOperations ops = new TimeTrackerOperations();
     var response = ops.GetAllEmployees();
     Assert.AreEqual(14, response.Data.Count);
 }