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