Exemplo n.º 1
0
 public void Delete(string email)
 {
     if (read.GetByName(email) == null)
     {
         throw new NotFoundEmployeeException();
     }
     delete.Delete(email);
 }
Exemplo n.º 2
0
 public void Create(Employee employee)
 {
     if (read.GetByName(employee.Email) != null)
     {
         throw new EmployeeAlreadyExistsException();
     }
     create.Create(employee);
 }