public Employee Create(Employee employee) { employee.Validate(); employee.Id = Guid.NewGuid().ToString(); employee.Password = CryptoProvider.CreateHash("p@ssw0rd"); return _storage.Save(employee); }
public Employee UpdatePassword(string employeeId, Employee employee) { employee.PasswordValidate(); _storage.UpdatePassword(employeeId, employee); return employee; }
public Employee Create(Employee employee) { employee.Validate(); return _storage.Save(employee); }