void IfHireDateNotExistsSetToday(Employee employee) { if (!employee.HireDate.HasValue) { employee.HireDate = DateTime.Now; _uow.Commit(); Console.WriteLine("Updated hire date of {0} {1} to {2}", employee.FirstName, employee.LastName, employee.HireDate.Value); } }
public EmployeeDetailsVM(Employee employee) { Name = string.Format("{0} {1}", employee.FirstName, employee.LastName); Phone = employee.HomePhone; }