public Response<List<TimeEntry>> GetAllTimeEntriesForOneEmp(int empId)
 {
     var repo = new TimeSheetRepository();
     Response<List<TimeEntry>> response =  new Response<List<TimeEntry>>();
     List<TimeEntry> timeEntries = repo.GetAllTimeEntriesForOneEmp(empId);
     try
     {
         if (timeEntries.Count > 0)
         {
             response.Success = true;
             response.Data = timeEntries;
         }
         else
         {
             response.Success = false;
             response.Message = "There are no Time Entries to display.";
         }
     }
     catch (Exception ex)
     {
         response.Success = false;
         response.Message = ex.Message;
     }
     return response;
 }
        public Employee SelectOneEmployee(int empId)
        {
            var repo = new TimeSheetRepository();
            Employee employee = new Employee();
            employee = repo.SelectOneEmployee(empId);

            var timeEntries = repo.GetAllTimeEntriesForOneEmp(empId);
            decimal? totalHours = 0;

            foreach (var hours in timeEntries)
            {
                totalHours += hours.HoursWorked;
            }
            employee.TotalHoursWorked = totalHours;

            return employee;
        }