original_string: public function apiStore()
      {
          DB::beginTransaction();
  
          try {
              $record = $this->__apiStore();
          } catch (\Exception $e) {
              DB::rollback();
  
              return HCLog::error('CORE-0002' . $e->getCode(), $e->getMessage());
          }
  
          DB::commit();
  
          return response($record);
      }
code: public function apiStore()
      {
          DB::beginTransaction();
  
          try {
              $record = $this->__apiStore();
          } catch (\Exception $e) {
              DB::rollback();
  
              return HCLog::error('CORE-0002' . $e->getCode(), $e->getMessage());
          }
  
          DB::commit();
  
          return response($record);
      }
code_tokens: public function apiStore ( ) { DB :: beginTransaction ( ) ; try { $ record = $ this -> __apiStore ( ) ; } catch ( \ Exception $ e ) { DB :: rollback ( ) ; return HCLog :: error ( 'CORE-0002' . $ e -> getCode ( ) , $ e -> getMessage ( ) ) ; } DB :: commit ( ) ; return response ( $ record ) ; }
docstring: Function which will store new record
  
  @return mixed
docstring_tokens: Function which will store new record