public Session GetExistingSessionFromGUID(string GUID) { Session s = sessionRepo.FindOneBy(x => x.GUID.Equals(GUID)); // AND ALSO if logouttime == null right?? if (s != null) { Employee e = employeeRepo.FindById(s.EmployeeId); s.Employee = e; } return(s); }