Пример #1
0
 public TransactionResponse DeleteEmployee(int employeeId)
 {
     TransactionResponse response = new TransactionResponse();
     try
     {
         if (_configuration == null)
             Initialize();
         RepositoryFactory rf = new RepositoryFactory();
         rf.DeleteEmployee(new Employee(){PersonId=employeeId});
     }
     catch (Exception ex)
     {
         response.Status.Success = false;
         response.Status.AddError("general", string.Format("{0} - {1}", MethodInfo.GetCurrentMethod().Name, ex.StackTrace));
     }
     return response;
 }