public void InsertTitle(Title title) { try { _titleRepository.Insert(title); } catch (DbUpdateException dbException) { if (dbException.InnerException != null) { GenericServiceException.ConstructGenericException(dbException); } else { throw dbException; } } }
public void InsertSalary(Salary salary) { try { _salaryRepository.Insert(salary); } catch (DbUpdateException dbException) { if (dbException.InnerException != null) { GenericServiceException.ConstructGenericException(dbException); } else { throw dbException; } } }
public void InsertEmployee(Employee employee) { try { _employeeRepository.Insert(employee); } catch (DbUpdateException dbException) { if (dbException.InnerException != null) { GenericServiceException.ConstructGenericException(dbException); } else { throw dbException; } } }
public void InsertDepartment(Department department) { try { _departmentRepository.Insert(department); } catch (DbUpdateException dbException) { if (dbException.InnerException != null) { GenericServiceException.ConstructGenericException(dbException); } else { throw dbException; } } }