Esempio n. 1
0
        public Model.Employee FindBy(Guid id)
        {
            var employee = _employeeMap.GetById(id);

            if (employee == null)
            {
                employee = DataStoreFindBy(id);
                if (employee != null)
                {
                    this._employeeMap.Store(id, employee);
                }
            }
            return(employee);
        }
Esempio n. 2
0
        public Employee FindBy(Guid Id)
        {
            Employee employee = _employeeMap.GetById(Id);

            if (employee == null)
            {
                employee = DatastoreFindBy(Id);
                if (employee != null)
                {
                    _employeeMap.Store(employee, employee.Id);
                }
            }

            return(employee);
        }