// Business Logic pass through code to Insert Owner public bool InsertOwner(OwnersEntity entity) { try { bool bOpDoneSuccessfully; using (var repository = new OwnersRepository()) { bOpDoneSuccessfully = repository.Insert(entity); } return(bOpDoneSuccessfully); } catch (Exception ex) { //Log exception error _loggingHandler.LogEntry(ExceptionHandler.GetExceptionMessageFormatted(ex), true); throw new Exception("BusinessLogic:OwnersBusiness::InsertOwner::Error occured.", ex); } }