            //get id from child array(data)
            $creditTypeValue['credit_type_id'] = $saveCreditType['credit_type_id'];

            //return success message if data have been successfully save to database
            return (new DataAction)->StoreData(CreditTypeValue::class,[],"",$creditTypeValue); 

        }else{

            //if data doesn't saved to database this will return success false and message why data not save
            return $saveCreditType;

        }