コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public EmployeeDetailsVM(Employee employee)
 {
     Name = string.Format("{0} {1}", employee.FirstName, employee.LastName);
     Phone = employee.HomePhone;
 }