public bool InsertServiceType(ServiceType entity) { try { bool bOpDoneSuccessfully; using (var repository = new ServiceTypeRepository()) { bOpDoneSuccessfully = repository.Insert(entity); } return(bOpDoneSuccessfully); } catch (Exception ex) { //Log exception error _loggingHandler.LogEntry(ExceptionHandler.GetExceptionMessageFormatted(ex), true); throw new Exception("BusinessLogic:ServiceTypesBusiness::InsertServiceType::Error occured.", ex); } }