// Business Logic pass through code to Delete an Owner by ID public bool DeleteOwnerById(int id) { try { using (var repository = new OwnersRepository()) { return(repository.DeleteById(id)); } } catch (Exception ex) { //Log exception error _loggingHandler.LogEntry(ExceptionHandler.GetExceptionMessageFormatted(ex), true); throw new Exception("BusinessLogic:OwnersBusiness::DeleteOwnerById::Error occured.", ex); } }