コード例 #1
0
 public Employee Create(Employee employee)
 {
     employee.Validate();
     employee.Id = Guid.NewGuid().ToString();
     employee.Password = CryptoProvider.CreateHash("p@ssw0rd");
     return _storage.Save(employee);
 }
コード例 #2
0
 public Employee UpdatePassword(string employeeId, Employee employee)
 {
     employee.PasswordValidate();
     _storage.UpdatePassword(employeeId, employee);
     return employee;
 }
コード例 #3
0
        public Employee Create(Employee employee)
        {
            employee.Validate();

            return _storage.Save(employee);
        }